Skip to content
Snippets Groups Projects
Commit 48f95164 authored by rswindell's avatar rswindell
Browse files

Log a warning instead of an error when unpacking a QWK REP packet which

contains a message hdr with a block length less than 2. Some versions of
Mystic apparently generate these REP packets and the errors are annoying
and there's really nothing the sysop can do about it but report back to
the user (or QWKnet node) that their packets contained some invalid
message headers.
parent 7e0b07bf
No related branches found
No related tags found
No related merge requests found
......@@ -199,10 +199,9 @@ bool sbbs_t::unpack_rep(char* repfile)
errors++;
continue;
}
snprintf(str, sizeof(str)-1
, "%s blocks (read '%c' at offset %ld, '%s' at offset %ld)"
, msg_fname, block[0], l, tmp, l + 116);
errormsg(WHERE, ERR_CHK, tmp, blocks, str);
lprintf(LOG_WARNING
, "%s msg blocks less than 2 (read '%c' at offset %ld, '%s' at offset %ld)"
, getfname(msg_fname), block[0], l, tmp, l + 116);
errors++;
blocks=1;
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment