From: Anoop C S Date: Wed, 15 Apr 2015 11:04:35 +0000 (+0530) Subject: libads: Fix CID 1272956 Fixing wrong if condition X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=226c59ea5bf2b8e27b8f0f9c36457a07df2d98ce;p=metze%2Fsamba%2Fwip.git libads: Fix CID 1272956 Fixing wrong if condition Signed-off-by: Anoop C S Reviewed-by: Jeremy Allison Reviewed-by: Christof Schmitt Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Sat Apr 18 01:33:04 CEST 2015 on sn-devel-104 --- diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c index d3a0992c8042..b4a1b845e764 100644 --- a/source3/libads/authdata.c +++ b/source3/libads/authdata.c @@ -239,7 +239,7 @@ NTSTATUS kerberos_return_pac(TALLOC_CTX *mem_ctx, } gensec_settings = lpcfg_gensec_settings(tmp_ctx, lp_ctx); - if (lp_ctx == NULL) { + if (gensec_settings == NULL) { status = NT_STATUS_NO_MEMORY; DEBUG(10, ("lpcfg_gensec_settings failed\n")); goto out;