From 559aa9e0a942c78c4e10b090a0d6d113dbf2fd9a Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 10 Sep 2004 09:02:34 +0000 Subject: [PATCH] smb_addmsg() only hashes the message body if smb->status.max_crcs is non-zero. --- src/smblib/smblib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c index 11512f0c0c..9f5e39df95 100644 --- a/src/smblib/smblib.c +++ b/src/smblib/smblib.c @@ -1541,7 +1541,7 @@ int SMBCALL smb_addmsg(smb_t* smb, smbmsg_t* msg, int storage, BOOL dupechk msg->hdr.number=smb->status.last_msg+1; - hashes=smb_msghashes(smb,msg,body); + hashes=smb_msghashes(smb,msg,smb->status.max_crcs ? body : NULL); if(dupechk && smb_findhash(smb, hashes, &found, /* update? */FALSE)==SMB_SUCCESS) { safe_snprintf(smb->last_error,sizeof(smb->last_error) -- GitLab