[13642] in Athena Bugs
kinit
daemon@ATHENA.MIT.EDU (gsstark@MIT.EDU)
Fri Jul 7 20:54:55 1995
From: gsstark@MIT.EDU
Date: Fri, 7 Jul 95 20:54:45 -0400
To: bugs@MIT.EDU
Cc: cfields@MIT.EDU
In the following code the ``else'' just shouldn't be there:
/afs/dev.mit.edu/source/src80/athena/lib/kerberos.p9/kuser/kinit.c line 313-320
if (vflag) {
printf("Kerberos realm %s:\n", realm);
printf("%s\n", krb_err_txt[k_errno]);
} else if (k_errno) {
fprintf(stderr, "%s: %s\n", progname, krb_err_txt[k_errno]);
memset(password, 0, PWSIZE);
exit(1);
}
The result is that if kinit is given the ``-v'' option it doesn't check for
any errors from trying to get the tickets. If the tickets aren't retrieved
correctly it simply exits with no error. It also fails to clear the memory
where the password was stored.
greg