]> git.sur5r.net Git - openldap/commitdiff
further fix of ITS#4782
authorPierangelo Masarati <ando@openldap.org>
Tue, 19 Dec 2006 22:11:33 +0000 (22:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 19 Dec 2006 22:11:33 +0000 (22:11 +0000)
servers/slapd/back-ldap/bind.c

index cbfa9ca4c56eed0c2293e91d4dbc3a0ee8620f18..738549f6af1d427dab4212b7dee86e3cab8e081c 100644 (file)
@@ -1158,10 +1158,11 @@ retry_lock:;
        if ( LDAP_BACK_CONN_ISIDASSERT( lc ) ) {
                if ( BER_BVISEMPTY( &binddn ) && BER_BVISEMPTY( &bindcred ) ) {
                        /* if we got here, it shouldn't return result */
-                       (void)ldap_back_is_proxy_authz( op, rs,
+                       rc = ldap_back_is_proxy_authz( op, rs,
                                LDAP_BACK_DONTSEND, &binddn, &bindcred );
+                       assert( rc == 1 );
                }
-               (void)ldap_back_proxy_authz_bind( lc, op, rs, sendok, &binddn, &bindcred );
+               rc = ldap_back_proxy_authz_bind( lc, op, rs, sendok, &binddn, &bindcred );
                goto done;
        }