mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
fix previous commit
This commit is contained in:
parent
85ec5a9ecb
commit
e2440ccb00
2 changed files with 2 additions and 2 deletions
|
|
@ -162,7 +162,7 @@ static struct tool_ctrls_t {
|
||||||
{ LDAP_CONTROL_PAGEDRESULTS, TOOL_SEARCH, print_paged_results },
|
{ LDAP_CONTROL_PAGEDRESULTS, TOOL_SEARCH, print_paged_results },
|
||||||
#ifdef LDAP_CONTROL_AUTHZID_RESPONSE
|
#ifdef LDAP_CONTROL_AUTHZID_RESPONSE
|
||||||
/* this is generally deprecated in favor of LDAP WhoAmI? operation, hence only supported as a VC inner control */
|
/* 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
|
#endif
|
||||||
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
|
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
|
||||||
{ LDAP_CONTROL_PASSWORDPOLICYRESPONSE, TOOL_ALL, print_ppolicy },
|
{ LDAP_CONTROL_PASSWORDPOLICYRESPONSE, TOOL_ALL, print_ppolicy },
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ int ldap_parse_verify_credentials(
|
||||||
|
|
||||||
*ctrls = LDAP_MALLOC(1 * sizeof(LDAPControl *));
|
*ctrls = LDAP_MALLOC(1 * sizeof(LDAPControl *));
|
||||||
|
|
||||||
if (*ctrls) {
|
if (!*ctrls) {
|
||||||
rc = LDAP_NO_MEMORY;
|
rc = LDAP_NO_MEMORY;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue