From 5f655e99a1c17ac9d28acb4740585d2100746d69 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 17 Nov 2010 17:09:24 +1100 Subject: s4-gensec: zero the gssapi_state this fixes a use of the target_principal before initialisation Pair-Programmed-With: Andrew Bartlett --- source4/auth/gensec/gensec_gssapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/auth/gensec') 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; } -- cgit