From e09576af2fa75ed8f9b679f5d61c46f0f64d30ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 22 Feb 2009 23:26:16 +0000 Subject: [PATCH] zero out conf_state git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24783 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/mech/gss_aeap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/gssapi/mech/gss_aeap.c b/lib/gssapi/mech/gss_aeap.c index 7f890fe93..a802bdef3 100644 --- a/lib/gssapi/mech/gss_aeap.c +++ b/lib/gssapi/mech/gss_aeap.c @@ -112,6 +112,8 @@ gss_wrap_iov_length(OM_uint32 * minor_status, if (minor_status) *minor_status = 0; + if (conf_state) + *conf_state = 0; if (ctx == NULL) return GSS_S_NO_CONTEXT; if (iov == NULL && iov_count != 0) @@ -119,7 +121,7 @@ gss_wrap_iov_length(OM_uint32 * minor_status, m = ctx->gc_mech; - if (m->gm_wrap_iov == NULL) { + if (m->gm_wrap_iov_length == NULL) { *minor_status = 0; return GSS_S_UNAVAILABLE; }