diff --git a/lib/gssapi/mech/gss_aeap.c b/lib/gssapi/mech/gss_aeap.c index a802bdef3..cbe0cd146 100644 --- a/lib/gssapi/mech/gss_aeap.c +++ b/lib/gssapi/mech/gss_aeap.c @@ -55,7 +55,8 @@ gss_wrap_iov(OM_uint32 * minor_status, m = ctx->gc_mech; if (m->gm_wrap_iov == NULL) { - *minor_status = 0; + if (minor_status) + *minor_status = 0; return GSS_S_UNAVAILABLE; }