summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-05-19 21:27:17 -0700
committerJeremy Allison <jra@samba.org>2010-05-19 21:27:17 -0700
commitb7067ee5f786dd2a06172014bbd7cd78d9129b47 (patch)
tree09e0996f5d2f5bb0a72c3093e0d2ee5986a6cdbc /source3/libsmb
parent1ad551ce3079f55d4b21a7853df15efaf5ae19cc (diff)
downloadsamba-b7067ee5f786dd2a06172014bbd7cd78d9129b47.tar.gz
samba-b7067ee5f786dd2a06172014bbd7cd78d9129b47.tar.bz2
samba-b7067ee5f786dd2a06172014bbd7cd78d9129b47.zip
Correctly check error code return.
Jeremy.
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/ntlmssp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c
index 2fc8adff83..8dcd26af17 100644
--- a/source3/libsmb/ntlmssp.c
+++ b/source3/libsmb/ntlmssp.c
@@ -540,7 +540,7 @@ static NTSTATUS ntlmssp_server_negotiate(struct ntlmssp_state *ntlmssp_state,
&vers,
(ndr_push_flags_fn_t)ndr_push_VERSION);
- if (err) {
+ if (!NDR_ERR_CODE_IS_SUCCESS(err)) {
return NT_STATUS_NO_MEMORY;
}
}