summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAnoop C S <achiraya@redhat.com>2015-04-15 16:34:35 +0530
committerJeremy Allison <jra@samba.org>2015-04-18 01:33:04 +0200
commit226c59ea5bf2b8e27b8f0f9c36457a07df2d98ce (patch)
treeedb336449107348f08e981df398d557f5f28a35d /source3/libads
parent76ba7f93b4032a1033aa7c58393a9e15fe94de97 (diff)
downloadsamba-226c59ea5bf2b8e27b8f0f9c36457a07df2d98ce.tar.gz
libads: Fix CID 1272956 Fixing wrong if condition
Signed-off-by: Anoop C S <achiraya@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sat Apr 18 01:33:04 CEST 2015 on sn-devel-104
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/authdata.c2
1 files changed, 1 insertions, 1 deletions
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;