From: Todd C. Miller Date: Thu, 30 Aug 2018 19:47:02 +0000 (-0600) Subject: Correct ldap_to_sudoers() return value. X-Git-Tag: SUDO_1_8_25^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=765d99e1f9100ba713a47d8d4c10d5caca72e1e6;p=sudo Correct ldap_to_sudoers() return value. --- diff --git a/plugins/sudoers/ldap.c b/plugins/sudoers/ldap.c index bcf134421..5942e5c84 100644 --- a/plugins/sudoers/ldap.c +++ b/plugins/sudoers/ldap.c @@ -1222,12 +1222,12 @@ ldap_to_sudoers(LDAP *ld, struct ldap_result *lres, TAILQ_INSERT_TAIL(&us->privileges, priv, entries); } - debug_return_ptr(ldap_userspecs); + debug_return_bool(true); oom: sudo_warnx(U_("%s: %s"), __func__, U_("unable to allocate memory")); free_userspecs(ldap_userspecs); - debug_return_ptr(NULL); + debug_return_bool(false); } #ifdef HAVE_LDAP_SASL_INTERACTIVE_BIND_S