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

Changed smb_msghashes() usage to match latest smblib update.

Only search for hashes if there were any hashable fields.
parent eac1f5ab
No related branches found
No related tags found
No related merge requests found
......@@ -333,8 +333,9 @@ int main(int argc, char **argv)
}
/* Look-up the message hashes */
hashes=smb_msghashes(&smb,&msg,body);
if((i=smb_findhash(&smb,hashes,NULL,FALSE /* mark */))!=SMB_SUCCESS) {
hashes=smb_msghashes(&msg,body,TRUE);
if(hashes[0]!=NULL
&& (i=smb_findhash(&smb,hashes,NULL,FALSE /* mark */))!=SMB_SUCCESS) {
fprintf(stderr,"%sFailed to find hash\n",beep);
msgerr=1;
if(extinfo)
......
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