summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-03-03 22:29:39 +0100
committerVolker Lendecke <vl@samba.org>2011-03-05 14:29:32 +0100
commit181b23ceed77de50c2b9d05a92a795cce1beabb9 (patch)
tree0e3004095836821089a90c18251027f9450c1797 /source3
parentdcbfb6fc0b9050168e2010673caccb7ec8807bd1 (diff)
downloadsamba-181b23ceed77de50c2b9d05a92a795cce1beabb9.tar.gz
samba-181b23ceed77de50c2b9d05a92a795cce1beabb9.tar.bz2
samba-181b23ceed77de50c2b9d05a92a795cce1beabb9.zip
nsswitch: wbcFreeMemory deals fine with NULL
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/ntlmssp.c4
1 files changed, 1 insertions, 3 deletions
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(&params, &info, &error);
- if (error != NULL) {
- wbcFreeMemory(error);
- }
+ wbcFreeMemory(error);
if (!WBC_ERROR_IS_OK(wbc_status)) {
goto noccache;
}