diff options
Diffstat (limited to 'src/lib/gssapi/mechglue/g_get_name_attr.c')
-rw-r--r-- | src/lib/gssapi/mechglue/g_get_name_attr.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/gssapi/mechglue/g_get_name_attr.c b/src/lib/gssapi/mechglue/g_get_name_attr.c index a83ebf8..59c2af8 100644 --- a/src/lib/gssapi/mechglue/g_get_name_attr.c +++ b/src/lib/gssapi/mechglue/g_get_name_attr.c @@ -58,6 +58,14 @@ gss_get_name_attribute(OM_uint32 *minor_status, *authenticated = 0; if (complete != NULL) *complete = 0; + if (value != NULL) { + value->value = NULL; + value->length = 0; + } + if (display_value != NULL) { + display_value->value = NULL; + display_value->length = 0; + } *minor_status = 0; @@ -66,7 +74,7 @@ gss_get_name_attribute(OM_uint32 *minor_status, if (union_name->attributes != NULL) { status = gssint_get_name_attribute(minor_status, union_name->attributes, - attr_name, + attr, authenticated, complete, value, |