* rd_svc_key.c (read_service_key): Don't call krb5_kt_close() if
krb5_kt_resolve() fails, so we don't segfault if the keytab name
is invalid.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10800
dc483132-0cff-0310-8789-
dd5450dbe970
+Mon Aug 10 17:51:59 1998 Matthew D Hancher <mdh@mit.edu>
+
+ * rd_svc_key.c (read_service_key): Don't call krb5_kt_close() if
+ krb5_kt_resolve() fails, so we don't segfault if the keytab name
+ is invalid.
+
Fri Aug 7 11:04:03 1998 Tom Yu <tlyu@mit.edu>
* rd_safe.c (krb_rd_safe): Fix up call to quad_cksum().
sizeof(keytabname)-1);
if (!retval) {
retval = krb5_kt_resolve(context, (char *)keytabname, &kt_id);
- if (!retval)
+ if (!retval) {
retval = krb5_kt_get_entry(context, kt_id, princ, kvno,
ENCTYPE_DES_CBC_CRC, &kt_entry);
- krb5_kt_close(context, kt_id);
+ krb5_kt_close(context, kt_id);
+ }
krb5_free_principal(context, princ);
}
if (!retval) {