fix previous commit

This commit is contained in:
Pierangelo Masarati 2011-01-04 01:02:12 +00:00
parent 85ec5a9ecb
commit e2440ccb00
2 changed files with 2 additions and 2 deletions

View File

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

View File

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