Skip to content
Snippets Groups Projects
Commit 92cb8882 authored by rswindell's avatar rswindell
Browse files

smb_name/subject_crc() now return 0 when passed a NULL pointer (instead

of 0xffff) - which is the same crc-16 of a 0-length string.
parent e346c469
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ uint16_t SMBCALL smb_subject_crc(const char* subj)
uint16_t crc;
if(subj==NULL)
return(0xffff);
return(0);
while(!strnicmp(subj,"RE:",3)) {
subj+=3;
......@@ -379,7 +379,7 @@ uint16_t SMBCALL smb_name_crc(const char* name)
uint16_t crc;
if(name==NULL)
return(0xffff);
return(0);
if((str=strdup(name))==NULL)
return(0xffff);
......
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