summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-04 22:12:31 -0800
committerJeremy Allison <jra@samba.org>2007-11-04 22:12:31 -0800
commit85ff0b2d75c54a369256f4d1fd198568697b803d (patch)
treed79fd594f48d0c20f13ea4e845b30548b674b1cc /source3/lib
parenta7be4d50d468da3ca7a8852780aeb901019d61c3 (diff)
downloadsamba-85ff0b2d75c54a369256f4d1fd198568697b803d.tar.gz
samba-85ff0b2d75c54a369256f4d1fd198568697b803d.tar.bz2
samba-85ff0b2d75c54a369256f4d1fd198568697b803d.zip
Don't use 0 when we mean SMB_READ_OK.
Jeremy. (This used to be commit 08ee4314a9e25700288f4ea1af22ee1732dfea61)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_sock.c b/source3/lib/util_sock.c
index 4b39e32115..ea0bf281ad 100644
--- a/source3/lib/util_sock.c
+++ b/source3/lib/util_sock.c
@@ -1276,7 +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() == 0) {
+ if (get_smb_read_error() == SMB_READ_OK) {
smb_read_error = SMB_READ_BAD_SIG;
}
return false;