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

Some ldap_get_values_len -> sudo_ldap_get_values_len that were

missed before.
This commit is contained in:
Todd C. Miller
2018-05-16 10:37:15 -06:00
parent b7e6d04907
commit 8ad51fe089

View File

@@ -1209,15 +1209,15 @@ ldap_to_sudoers(LDAP *ld, struct ldap_result *lres,
goto cleanup;
/* Get sudoNotBefore / sudoNotAfter */
notbefore = ldap_get_values_len(ld, entry, "sudoNotBefore");
notbefore = sudo_ldap_get_values_len(ld, entry, "sudoNotBefore", &rc);
if (rc == LDAP_NO_MEMORY)
goto cleanup;
notafter = ldap_get_values_len(ld, entry, "sudoNotAfter");
notafter = sudo_ldap_get_values_len(ld, entry, "sudoNotAfter", &rc);
if (rc == LDAP_NO_MEMORY)
goto cleanup;
/* Parse sudoOptions. */
opts = ldap_get_values_len(ld, entry, "sudoOption");
opts = sudo_ldap_get_values_len(ld, entry, "sudoOption", &rc);
if (rc == LDAP_NO_MEMORY)
goto cleanup;