(gss_display_name): no name -> fail. From Rafal Malinswski.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21244 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-06-20 15:19:51 +00:00
parent 64b2fd7e72
commit 2552204b59

View File

@@ -43,6 +43,11 @@ gss_display_name(OM_uint32 *minor_status,
if (output_name_type)
*output_name_type = GSS_C_NO_OID;
if (name == GSS_C_NO_NAME) {
*minor_status = 0;
return (GSS_S_BAD_NAME);
}
/*
* If we know it, copy the buffer used to import the name in
* the first place. Otherwise, ask all the MNs in turn if