git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7be4d5
)
Don't use 0 when we mean SMB_READ_OK.
author
Jeremy Allison
<jra@samba.org>
Mon, 5 Nov 2007 06:12:31 +0000
(22:12 -0800)
committer
Jeremy Allison
<jra@samba.org>
Mon, 5 Nov 2007 06:12:31 +0000
(22:12 -0800)
Jeremy.
(This used to be commit
08ee4314a9e25700288f4ea1af22ee1732dfea61
)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 4b39e321159096d176c15d8a31a9056ad7900b84..ea0bf281add707c56c547363c52f5a4486151898 100644
(file)
--- 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;