From: Pierangelo Masarati Date: Tue, 19 Dec 2006 22:11:33 +0000 (+0000) Subject: further fix of ITS#4782 X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~334 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4483e79906a87de81444dc8acefb70c9c56563fe;p=openldap further fix of ITS#4782 --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index cbfa9ca4c5..738549f6af 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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; }