Skip to content
Snippets Groups Projects
Commit 89dee82a authored by rswindell's avatar rswindell
Browse files

Bugfix: potential NULL string compare in get_msg_by_ftn_id().

parent fae9c5eb
No related branches found
No related tags found
No related merge requests found
......@@ -2267,7 +2267,9 @@ BOOL DLLCALL get_msg_by_ftn_id(smb_t* smb, char* id, smbmsg_t* msg)
continue;
/* should this be case sensitive? */
if(smb_getmsghdr(smb,msg)==SMB_SUCCESS && stricmp(msg->ftn_msgid,id)==0)
if(smb_getmsghdr(smb,msg)==SMB_SUCCESS
&& msg->ftn_msgid!=NULL
&& stricmp(msg->ftn_msgid,id)==0)
return(TRUE);
smb_unlockmsghdr(smb,msg);
......
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