kdc_preauth.c (check_padata): Fixed error handling; in order for
authorTheodore Tso <tytso@mit.edu>
Thu, 7 Nov 1996 17:31:20 +0000 (17:31 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 7 Nov 1996 17:31:20 +0000 (17:31 +0000)
commit9412bbd6ae0af969d7621a071034b42143c3e1b9
treef876f77f9e65157c544053f027b8ebeb07627f11
parent0052e7d7886c38f6dd286537775f7699fcbd0014
kdc_preauth.c (check_padata): Fixed error handling; in order for
check_preauth to return successfully, there must be at least one
preauth which succeeded, and no REQUIRED preauth system which failed.
If a preauth is marked SUFFICIENT, then the rest of the preauth list
aren't checked.  Fixed bug where when none of the preauth types were
recognized, an error message corresponding to stack garbage was
printed.

main.c (argv): Check the error return from krb5_init_context(), and
print an error message if necessary.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9323 dc483132-0cff-0310-8789-dd5450dbe970
src/kdc/ChangeLog
src/kdc/kdc_preauth.c
src/kdc/main.c