From 226c59ea5bf2b8e27b8f0f9c36457a07df2d98ce Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Wed, 15 Apr 2015 16:34:35 +0530 Subject: [PATCH] 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 --- source3/libads/authdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libads/authdata.c b/source3/libads/authdata.c index d3a0992c804..b4a1b845e76 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; -- 2.11.4.GIT