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,8 +47,10 @@ gss_get_name_attribute(OM_uint32 *minor_status,
struct _gss_mechanism_name *mn;
*minor_status = 0;
*authenticated = 0;
*complete = 0;
if (authenticated != NULL)
*authenticated = 0;
if (complete != NULL)
*complete = 0;
_mg_buffer_zero(value);
_mg_buffer_zero(display_value);