From: Pierangelo Masarati Date: Mon, 19 Mar 2007 15:50:28 +0000 (+0000) Subject: restore op before checking result (and, if necessary, bailing out) X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~607 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6420bcd7d786d138fec253a3540aed4deea20786;p=openldap restore op before checking result (and, if necessary, bailing out) --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 9ea112bf93..8513759bff 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -781,13 +781,13 @@ ldap_back_getconn( op->o_ndn = op->o_req_ndn; } isproxyauthz = ldap_back_is_proxy_authz( op, rs, sendok, binddn, bindcred ); - if ( isproxyauthz == -1 ) { - return NULL; - } if ( op->o_tag == LDAP_REQ_BIND ) { op->o_dn = save_o_dn; op->o_ndn = save_o_ndn; } + if ( isproxyauthz == -1 ) { + return NULL; + } lc_curr.lc_local_ndn = op->o_ndn; /* Explicit binds must not be shared;