kinit return bug (?)
Stephen.Grau at digex.com
Mon Apr 21 10:49:16 EDT 2003
apologies to the list. I was so excited about being of some small use that I
only had enough presence of mind to pick between the two lists I had
subscribed to... This bug has been submitted properly.
>From: Grau, Stephen [mailto:Stephen.Grau at digex.com]
>Sent: Friday, April 18, 2003 5:34 PM
>To: 'krbdev at mit.edu'
>Subject: kinit return bug (?)
>If you kinit, for example, with a slash in the realm error, you get a
>KRB5_PARSE_MALFORMED error, but kinit returns with a 0 return code.
>In the code, it is only returning an error code if a valid instance was
>parsed and it wasn't authenticated. I think it should return
>an error code
>if it wasn't able to get a valid instance.
>This is the best I could do with the diff. This is also
>present in 1.2.8 and
>--- krb5-1.2.6/src/clients/kinit/kinit.c Mon Dec 10 15:49:50 2001
>+++ krb5-1.2.6/src/clients/kinit/kinit.c Fri Apr 18 17:21:24 2003
>@@ -1107,7 +1107,7 @@
>- if ((got_k5 && !authed_k5) || (got_k4 && !authed_k4))
>+ if ((got_k5 && !authed_k5) || (got_k4 && !authed_k4) ||
> return 0;
>krbdev mailing list krbdev at mit.edu
More information about the krbdev