r19172@cathode-dark-space: raeburn | 2007-02-23 19:58:05 -0500
ticket: 5445
status: open
When importing a name with a valid (non-null) handle but a zero
length, set GSS_S_BAD_NAME but not GSS_S_CALL_INACCESSIBLE_READ.
ticket: 5445
version_fixed: 1.6.1
git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19187
dc483132-0cff-0310-8789-
dd5450dbe970
if (input_name_buffer == GSS_C_NO_BUFFER)
return (GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME);
- if (GSS_EMPTY_BUFFER(input_name_buffer))
+ if (input_name_buffer->length == 0)
+ return GSS_S_BAD_NAME;
+
+ if (input_name_buffer->value == NULL)
return (GSS_S_CALL_INACCESSIBLE_READ | GSS_S_BAD_NAME);
return (GSS_S_COMPLETE);