Skip to content
Snippets Groups Projects
Commit 9e03cb96 authored by rswindell's avatar rswindell
Browse files

Changed error message type (from ALLOC to READ) if smb_getmsgdatlen fails.

parent 91be23f9
No related branches found
No related tags found
No related merge requests found
......@@ -297,11 +297,11 @@ void sbbs_t::msgtotxt(smbmsg_t* msg, char *str, int header, int tails)
fprintf(out,"\r\n\r\n"); }
buf=smb_getmsgtxt(&smb,msg,tails);
if(buf) {
if(buf!=NULL) {
lfputs(buf,out);
LFREE(buf); }
else if(smb_getmsgdatlen(msg)>2)
errormsg(WHERE,ERR_ALLOC,smb.file,smb_getmsgdatlen(msg));
LFREE(buf);
} else if(smb_getmsgdatlen(msg)>2)
errormsg(WHERE,ERR_READ,smb.file,smb_getmsgdatlen(msg));
fclose(out);
}
......
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