From b7067ee5f786dd2a06172014bbd7cd78d9129b47 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 May 2010 21:27:17 -0700 Subject: Correctly check error code return. Jeremy. --- source3/libsmb/ntlmssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') 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; } } -- cgit