pac: Fix wrong memory allocation check
authorSimo Sorce <idra@samba.org>
Mon, 10 Oct 2011 21:48:02 +0000 (17:48 -0400)
committerSimo Sorce <idra@samba.org>
Mon, 10 Oct 2011 23:18:22 +0000 (01:18 +0200)
Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Oct 11 01:18:22 CEST 2011 on sn-devel-104

source4/kdc/pac-glue.c

index e92a511d0f022a24e3cb3b93f6e8b6dc08071302..5718452cc00c1ac9379e3b1f95ddaa8c7f3c3805 100644 (file)
@@ -51,7 +51,7 @@ NTSTATUS samba_get_logon_info_pac_blob(TALLOC_CTX *mem_ctx,
        }
 
        pac_info.logon_info.info = talloc_zero(mem_ctx, struct PAC_LOGON_INFO);
-       if (!mem_ctx) {
+       if (!pac_info.logon_info.info) {
                return NT_STATUS_NO_MEMORY;
        }