The sample client sclient crashes during initialization. It also crashes before trying to print an error message if authentication fails. It appears to need the following patch. I reported the first part of this bug and fix directly to MIT but forgot the second part. Oops. --- /vesta/src.dec.com/test2/kerbtest/checkout/1/17/src/sclient/sclient.c Wed Oct 11 19:57:23 2000 +++ sclient.c Wed Oct 11 21:36:08 2000 @@ -77,6 +77,7 @@ exit(1); } + memset(&context, 0, sizeof(context)); retval = krb5_init_context(&context); if (retval) { com_err(argv[0], retval, "while initializing krb5"); @@ -176,7 +177,7 @@ krb5_free_principal(context, server); /* finished using it */ krb5_free_principal(context, client); krb5_cc_close(context, ccdef); - krb5_auth_con_free(context, auth_context); + if (auth_context) krb5_auth_con_free(context, auth_context); if (retval && retval != KRB5_SENDAUTH_REJECTED) { com_err(argv[0], retval, "while using sendauth");
p.s. I've now reported both parts of the bug to MIT.
It appears this patch was folded into krb5 1.2.2. Thanks!