libads: Fix CID 1272956 Fixing wrong if condition
authorAnoop C S <achiraya@redhat.com>
Wed, 15 Apr 2015 11:04:35 +0000 (16:34 +0530)
committerJeremy Allison <jra@samba.org>
Fri, 17 Apr 2015 23:33:04 +0000 (01:33 +0200)
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

source3/libads/authdata.c

index d3a0992c80426585303e932daa62b1896be23e05..b4a1b845e764784e240d18f1a89980bbf7d8dcc6 100644 (file)
@@ -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;