If caller specified a server, fail on failure to find keytab entry.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24460 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2009-01-25 00:47:41 +00:00
parent 329e5b51b3
commit 8915cd15a7

View File

@@ -926,9 +926,11 @@ krb5_rd_req_ctx(krb5_context context,
id,
&o->keyblock);
if (ret) {
/*
* Fall back to iterating over the keytab. This have
* serious performace issues for larger keytab.
/* If caller specified a server, fail. */
if (service == NULL)
goto out;
/* Otherwise, fall back to iterating over the keytab. This
* have serious performace issues for larger keytab.
*/
o->keyblock = NULL;
}