Skip to content
Snippets Groups Projects
Commit 37f56e29 authored by rswindell's avatar rswindell
Browse files

If invalid number of blocks in QWK packet header, logs error before returning false.

parent b10f8001
No related branches found
No related tags found
No related merge requests found
......@@ -59,8 +59,10 @@ bool sbbs_t::qwktomsg(FILE *qwk_fp, char *hdrblk, char fromhub, uint subnum
msg.hdr.version=smb_ver();
blocks=atol(hdrblk+116);
if(blocks<2)
if(blocks<2) {
errormsg(WHERE,ERR_CHK,"QWK packet header blocks",blocks);
return(false);
}
if(subnum!=INVALID_SUB
&& (hdrblk[0]=='*' || hdrblk[0]=='+' || cfg.sub[subnum]->misc&SUB_PONLY))
......
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