Skip to content
Snippets Groups Projects
Commit 60756c50 authored by rswindell's avatar rswindell
Browse files

Added last_error entry for smb_getmsgtxt() if not data fields exist for message.

parent 672efcb7
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,11 @@ char HUGE16* SMBCALL smb_getmsgtxt(smb_t* smb, smbmsg_t* msg, ulong mode)
int i,lzh;
long l=0,lzhlen,length;
if(!msg->hdr.total_dfields) {
sprintf(smb->last_error,"no data fields");
return(NULL);
}
for(i=0;i<msg->hdr.total_dfields;i++) {
if(!(msg->dfield[i].type==TEXT_BODY
|| (mode&GETMSGTXT_TAILS && msg->dfield[i].type==TEXT_TAIL))
......
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