diff options
Diffstat (limited to 'crypto/heimdal/lib/krb5/verify_init.c')
-rw-r--r-- | crypto/heimdal/lib/krb5/verify_init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/heimdal/lib/krb5/verify_init.c b/crypto/heimdal/lib/krb5/verify_init.c index 0f080ee..e7945ad 100644 --- a/crypto/heimdal/lib/krb5/verify_init.c +++ b/crypto/heimdal/lib/krb5/verify_init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 1998 Kungliga Tekniska Högskolan + * Copyright (c) 1997 - 2000 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). * All rights reserved. * @@ -33,7 +33,7 @@ #include "krb5_locl.h" -RCSID("$Id: verify_init.c,v 1.11 1999/12/02 17:05:13 joda Exp $"); +RCSID("$Id: verify_init.c,v 1.12 2000/01/21 05:47:35 assar Exp $"); void krb5_verify_init_creds_opt_init(krb5_verify_init_creds_opt *options) @@ -148,14 +148,14 @@ krb5_verify_init_creds(krb5_context context, ret = 0; goto cleanup; } - } else - new_creds = creds; + creds = new_creds; + } ret = krb5_mk_req_extended (context, &auth_context, 0, NULL, - new_creds, + creds, &req); krb5_auth_con_free (context, auth_context); @@ -179,7 +179,7 @@ cleanup: krb5_auth_con_free (context, auth_context); krb5_data_free (&req); krb5_kt_free_entry (context, &entry); - if (new_creds) + if (new_creds != NULL) krb5_free_creds (context, new_creds); if (ap_req_server == NULL && server) krb5_free_principal (context, server); |