Allow NULL arguments to gss_{get_name_attribute,inquire_name}

This commit is contained in:
Luke Howard
2011-05-12 14:01:40 +02:00
parent be92276b8b
commit 3287820448
2 changed files with 12 additions and 6 deletions

View File

@@ -47,7 +47,9 @@ gss_get_name_attribute(OM_uint32 *minor_status,
struct _gss_mechanism_name *mn;
*minor_status = 0;
if (authenticated != NULL)
*authenticated = 0;
if (complete != NULL)
*complete = 0;
_mg_buffer_zero(value);
_mg_buffer_zero(display_value);

View File

@@ -44,8 +44,11 @@ gss_inquire_name(OM_uint32 *minor_status,
struct _gss_mechanism_name *mn;
*minor_status = 0;
if (name_is_MN != NULL)
*name_is_MN = 0;
if (MN_mech != NULL)
*MN_mech = GSS_C_NO_OID;
if (attrs != NULL)
*attrs = GSS_C_NO_BUFFER_SET;
if (input_name == GSS_C_NO_NAME)
@@ -63,6 +66,7 @@ gss_inquire_name(OM_uint32 *minor_status,
MN_mech,
attrs);
if (major_status == GSS_S_COMPLETE) {
if (name_is_MN != NULL)
*name_is_MN = 1;
#if 0
if (*MN_mech == GSS_C_NO_OID)