Skip to content
Snippets Groups Projects
Commit d752fc0e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Remove trailing whitespace before computing Subject CRC

Some responding programs will automatically remove the trailing white-space from subject when replying and that would mess up the subject-linkage-by-CRC. So let's just ignore trailing whitespace in the first place.
parent e8f8cb42
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3028 passed
...@@ -387,6 +387,7 @@ uint16_t smb_subject_crc(const char* subj) ...@@ -387,6 +387,7 @@ uint16_t smb_subject_crc(const char* subj)
return(0xffff); return(0xffff);
strlwr(str); strlwr(str);
truncsp(str);
crc=crc16(str,0 /* auto-length */); crc=crc16(str,0 /* auto-length */);
free(str); free(str);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment