]> git.sur5r.net Git - openldap/commitdiff
fix previous commit
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Jan 2011 01:02:12 +0000 (01:02 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Jan 2011 01:02:12 +0000 (01:02 +0000)
clients/tools/common.c
libraries/libldap/vc.c

index e68a3421af7ad5863d2ae3b1c449a621998d571c..c9301a54bdc3fba4ca06d3c38106793c60afc073 100644 (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 },
index 90c7d19561e9fa491b4d6a12676a51481330ce35..03a57ceabc00cd190d29c0ceb61a127690a6528a 100644 (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;
                        }