mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-04-06 15:00:40 +08:00
fix previous commit
This commit is contained in:
parent
85ec5a9ecb
commit
e2440ccb00
@ -162,7 +162,7 @@ static struct tool_ctrls_t {
|
||||
{ LDAP_CONTROL_PAGEDRESULTS, TOOL_SEARCH, print_paged_results },
|
||||
#ifdef LDAP_CONTROL_AUTHZID_RESPONSE
|
||||
/* this is generally deprecated in favor of LDAP WhoAmI? operation, hence only supported as a VC inner control */
|
||||
{ LDAP_CONTROL_PASSWORDPOLICYRESPONSE, TOOL_VC, print_authzid },
|
||||
{ LDAP_CONTROL_AUTHZID_RESPONSE, TOOL_VC, print_authzid },
|
||||
#endif
|
||||
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
|
||||
{ LDAP_CONTROL_PASSWORDPOLICYRESPONSE, TOOL_ALL, print_ppolicy },
|
||||
|
@ -117,7 +117,7 @@ int ldap_parse_verify_credentials(
|
||||
|
||||
*ctrls = LDAP_MALLOC(1 * sizeof(LDAPControl *));
|
||||
|
||||
if (*ctrls) {
|
||||
if (!*ctrls) {
|
||||
rc = LDAP_NO_MEMORY;
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user