diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-04 22:14:19 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-04 22:14:19 -0800 |
commit | 6a2a27076ff298d747038d4feaf288b263ba31f5 (patch) | |
tree | b9d533fec956c848a556fc77918d7d7f2c9f8c15 /source3 | |
parent | 85ff0b2d75c54a369256f4d1fd198568697b803d (diff) | |
download | samba-6a2a27076ff298d747038d4feaf288b263ba31f5.tar.gz samba-6a2a27076ff298d747038d4feaf288b263ba31f5.tar.bz2 samba-6a2a27076ff298d747038d4feaf288b263ba31f5.zip |
This should really be a cond_set_smb_read_error().
Jeremy.
(This used to be commit 5ab76b58c00dde89b56060482f5cdc5d0c6c56cb)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_sock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c index ea0bf281ad..d87d954536 100644 --- a/source3/lib/util_sock.c +++ b/source3/lib/util_sock.c @@ -1276,9 +1276,7 @@ bool receive_smb(int fd, char *buffer, unsigned int timeout) if (!srv_check_sign_mac(buffer, true)) { DEBUG(0, ("receive_smb: SMB Signature verification " "failed on incoming packet!\n")); - if (get_smb_read_error() == SMB_READ_OK) { - smb_read_error = SMB_READ_BAD_SIG; - } + cond_set_smb_read_error(SMB_READ_BAD_SIG); return false; } |