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

Do not calculate or store hashes of 0-length sources (e.g. empty/blank message

bodies).
parent 73699e8d
Branches
Tags
No related merge requests found
......@@ -189,6 +189,9 @@ hash_t* SMBCALL smb_hash(ulong msgnum, ulong t, unsigned source, unsigned flags
{
hash_t* hash;
if(length==0) /* Don't hash 0-length sources (e.g. empty/blank message bodies) */
return(NULL);
if((hash=(hash_t*)malloc(sizeof(hash_t)))==NULL)
return(NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment