summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2011-10-10 17:48:02 -0400
committerSimo Sorce <idra@samba.org>2011-10-11 01:18:22 +0200
commit6bed57788c2341a92e1c4431ea764bf037431254 (patch)
treeca648523e58d249b6f145746da8891e7046f0b6f
parentc9eba24886806bca795f294183b7543e4f9376ca (diff)
downloadsamba-6bed57788c2341a92e1c4431ea764bf037431254.tar.gz
samba-6bed57788c2341a92e1c4431ea764bf037431254.tar.bz2
samba-6bed57788c2341a92e1c4431ea764bf037431254.zip
pac: Fix wrong memory allocation check
Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Tue Oct 11 01:18:22 CEST 2011 on sn-devel-104
-rw-r--r--source4/kdc/pac-glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/kdc/pac-glue.c b/source4/kdc/pac-glue.c
index e92a511d0f..5718452cc0 100644
--- a/source4/kdc/pac-glue.c
+++ b/source4/kdc/pac-glue.c
@@ -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;
}