pac: Fix wrong memory allocation check
[idra/samba.git] / 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;
        }