2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Correct ldap_to_sudoers() return value.

This commit is contained in:
Todd C. Miller
2018-08-30 13:47:02 -06:00
parent 6e4f8c8cd2
commit 765d99e1f9

View File

@@ -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