summaryrefslogtreecommitdiff
path: root/source/lib/util_sock.c
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
commit08ee4314a9e25700288f4ea1af22ee1732dfea61 (patch)
treecfb2746d7086899a35a7a5d3e196abbd3cf2ca53 /source/lib/util_sock.c
parentd0bf0ad2ae9a2bff4cec8c7e801a22c624b874ae (diff)
downloadsamba-08ee4314a9e25700288f4ea1af22ee1732dfea61.tar.gz
Don't use 0 when we mean SMB_READ_OK.
Jeremy.
Diffstat (limited to 'source/lib/util_sock.c')
-rw-r--r--source/lib/util_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c
index 4b39e321159..ea0bf281add 100644
--- a/source/lib/util_sock.c
+++ b/source/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;