From: Kurt Zeilenga Date: Wed, 1 May 2002 18:10:14 +0000 (+0000) Subject: Patch: Perl backend sends bind result twice (ITS#1783) X-Git-Tag: OPENLDAP_REL_ENG_2_MP~126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5b06af70bba1547d32409c539856ca0ad165ef0b;p=openldap Patch: Perl backend sends bind result twice (ITS#1783) ================ Written by Hallvard B. Furuseth and placed into the public domain. This software is not subject to any license of the University of Oslo. ================ perl_back_bind() should not send LDAP_SUCCESS, the frontend does that. Hallvard B. Furuseth , April 2002. --- diff --git a/servers/slapd/back-perl/bind.c b/servers/slapd/back-perl/bind.c index a286224563..05ecf4d338 100644 --- a/servers/slapd/back-perl/bind.c +++ b/servers/slapd/back-perl/bind.c @@ -85,7 +85,9 @@ perl_back_bind( Debug( LDAP_DEBUG_ANY, "Perl BIND returned 0x%04x\n", return_code, 0, 0 ); - send_ldap_result( conn, op, return_code, NULL, NULL, NULL, NULL ); + /* frontend will send result on success (0) */ + if( return_code != LDAP_SUCCESS ) + send_ldap_result( conn, op, return_code, NULL, NULL, NULL, NULL ); return ( return_code ); }