From 98369bf985c910bed0ea3c8d2f27bbef819d9019 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 28 Jul 2017 14:05:54 -0600 Subject: [PATCH] Avoid unused variable warning when sasl is not used. --- plugins/sudoers/ldap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.40.0