From 181b23ceed77de50c2b9d05a92a795cce1beabb9 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Mar 2011 22:29:39 +0100 Subject: nsswitch: wbcFreeMemory deals fine with NULL --- source3/libsmb/ntlmssp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/ntlmssp.c b/source3/libsmb/ntlmssp.c index 477b94c1d0..7a006a373f 100644 --- a/source3/libsmb/ntlmssp.c +++ b/source3/libsmb/ntlmssp.c @@ -463,9 +463,7 @@ static NTSTATUS ntlmssp_client_challenge(struct ntlmssp_state *ntlmssp_state, params.blobs = &auth_blob; wbc_status = wbcCredentialCache(¶ms, &info, &error); - if (error != NULL) { - wbcFreeMemory(error); - } + wbcFreeMemory(error); if (!WBC_ERROR_IS_OK(wbc_status)) { goto noccache; } -- cgit