From: Ezra Peisach Date: Thu, 7 Jun 2001 17:51:04 +0000 (+0000) Subject: * vfy_increds.c (krb5_verify_init_creds): Get rid of a variable X-Git-Tag: krb5-1.3-alpha1~1465 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=52e601ce99f2f53817d40fbfa948b631858d2a84;p=krb5.git * vfy_increds.c (krb5_verify_init_creds): Get rid of a variable that was set in a conditional and never used afterwards. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13290 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 155f35a5f..5e9061939 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2001-06-07 Ezra Peisach + + * vfy_increds.c (krb5_verify_init_creds): Get rid of a variable + that was set in a conditional and never used afterwards. + 2001-06-01 Ken Raeburn * init_ctx.c (get_profile_etype_list): Zero out multiple separator diff --git a/src/lib/krb5/krb/vfy_increds.c b/src/lib/krb5/krb/vfy_increds.c index e3955174e..9f9a257f2 100644 --- a/src/lib/krb5/krb/vfy_increds.c +++ b/src/lib/krb5/krb/vfy_increds.c @@ -103,17 +103,16 @@ krb5_verify_init_creds(krb5_context context, /* this means there is no keying material. This is ok, as long as it is not prohibited by the configuration */ - krb5_error_code ret2; int nofail; if (options && (options->flags & KRB5_VERIFY_INIT_CREDS_OPT_AP_REQ_NOFAIL)) { if (options->ap_req_nofail) goto cleanup; - } else if ((ret2 = krb5_libdefault_boolean(context, - &creds->client->realm, - "verify_ap_req_nofail", - &nofail)) + } else if (krb5_libdefault_boolean(context, + &creds->client->realm, + "verify_ap_req_nofail", + &nofail) == 0) { if (nofail) goto cleanup;