From: Todd C. Miller Date: Fri, 28 Jul 2017 20:05:54 +0000 (-0600) Subject: Avoid unused variable warning when sasl is not used. X-Git-Tag: SUDO_1_8_21^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98369bf985c910bed0ea3c8d2f27bbef819d9019;p=sudo Avoid unused variable warning when sasl is not used. --- diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index acd524879..f21a99ee7 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -3031,7 +3031,7 @@ sudo_ldap_result_add_search(struct ldap_result *lres, LDAP *ldap, static int sudo_ldap_bind_s(LDAP *ld) { - int rc, ret; + int ret; debug_decl(sudo_ldap_bind_s, SUDOERS_DEBUG_LDAP) #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S @@ -3042,6 +3042,7 @@ sudo_ldap_bind_s(LDAP *ld) const char *tmp_ccname = NULL; void *auth_id = ldap_conf.rootsasl_auth_id ? ldap_conf.rootsasl_auth_id : ldap_conf.sasl_auth_id; + int rc; /* Make temp copy of the user's credential cache as needed. */ if (ldap_conf.krb5_ccname == NULL && user_ccname != NULL) {