summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-17 17:09:24 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-17 23:55:38 +1100
commit5f655e99a1c17ac9d28acb4740585d2100746d69 (patch)
tree5daae32319c87bcfb5837b2cb64210ac622beae7 /source4
parent1887ce87e49fa593e02807e52fd4b653ca577a66 (diff)
downloadsamba-5f655e99a1c17ac9d28acb4740585d2100746d69.tar.gz
samba-5f655e99a1c17ac9d28acb4740585d2100746d69.tar.bz2
samba-5f655e99a1c17ac9d28acb4740585d2100746d69.zip
s4-gensec: zero the gssapi_state
this fixes a use of the target_principal before initialisation Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/gensec/gensec_gssapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index a6d0ef2771..f0da54d711 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -149,7 +149,7 @@ static NTSTATUS gensec_gssapi_start(struct gensec_security *gensec_security)
krb5_error_code ret;
const char *realm;
- gensec_gssapi_state = talloc(gensec_security, struct gensec_gssapi_state);
+ gensec_gssapi_state = talloc_zero(gensec_security, struct gensec_gssapi_state);
if (!gensec_gssapi_state) {
return NT_STATUS_NO_MEMORY;
}