Under some circumstances, gss_inquire_name() can call
gss_release_oid() with a null oid pointer, which currently causes a
null dereference. The least invasive fix is for gss_release_oid() to
check for the invalid null pointer and return an error, like other
GSS-API functions do.
(cherry picked from commit
4676e823e6ee9a5731872b31c5588c1b5932e0a3)
ticket: 8303 (new)
version_fixed: 1.12.5
status: resolved
OM_uint32 major;
gss_mech_info aMech;
- if (minor_status == NULL)
+ if (minor_status == NULL || oid == NULL)
return (GSS_S_CALL_INACCESSIBLE_WRITE);
*minor_status = gssint_mechglue_initialize_library();