provide slightly better error codes

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23537 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-08-16 22:58:41 +00:00
parent b3c213ae68
commit 84199f34d1

View File

@@ -928,11 +928,16 @@ OM_uint32 _gsskrb5_init_sec_context
* If we get there, the caller have called
* gss_init_sec_context() one time too many.
*/
*minor_status = 0;
_gsskrb5_set_status(EINVAL, "init_sec_context "
"called one time too many");
*minor_status = EINVAL;
ret = GSS_S_BAD_STATUS;
break;
default:
*minor_status = 0;
_gsskrb5_set_status(EINVAL, "init_sec_context "
"invalid state %d for client",
(int)ctx->state);
*minor_status = EINVAL;
ret = GSS_S_BAD_STATUS;
break;
}