diff --git a/lib/krb5/mk_req.c b/lib/krb5/mk_req.c index 61a41a4da..72d8192a0 100644 --- a/lib/krb5/mk_req.c +++ b/lib/krb5/mk_req.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 1998 Kungliga Tekniska Högskolan + * Copyright (c) 1997, 1998, 1999 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -82,8 +82,8 @@ krb5_mk_req(krb5_context context, if (r) return r; this_cred.times.endtime = 0; - if (auth_context && *auth_context && (*auth_context)->keyblock) - this_cred.session.keytype = (*auth_context)->keyblock->keytype; + if (auth_context && *auth_context && (*auth_context)->keytype) + this_cred.session.keytype = (*auth_context)->keytype; r = krb5_get_credentials (context, 0, ccache, &this_cred, &cred); if (r)