From 40fc36a6834e37e91bd1f781dd907b1c1017cb67 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 8 Oct 2010 14:57:58 +0000 Subject: [PATCH] In gss_inquire_attrs_for_mech, remove the assumption that mech_attrs != NULL in a particular error case. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24444 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/mechglue/g_mechattr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/gssapi/mechglue/g_mechattr.c b/src/lib/gssapi/mechglue/g_mechattr.c index 63ec35768..d23f32664 100644 --- a/src/lib/gssapi/mechglue/g_mechattr.c +++ b/src/lib/gssapi/mechglue/g_mechattr.c @@ -205,7 +205,8 @@ OM_uint32 gss_inquire_attrs_for_mech( known_mech_attrs); if (GSS_ERROR(status)) { gss_release_oid_set(&tmpMinor, mech_attrs); - *mech_attrs = GSS_C_NO_OID_SET; + if (mech_attrs != NULL) + *mech_attrs = GSS_C_NO_OID_SET; } } -- 2.26.2