From: Ondřej Kuzník Date: Thu, 2 Apr 2026 13:10:40 +0000 (+0100) Subject: ITS#10266 lloadd: Correct NoD handling X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=3f07e6fbfb64e2d74ad62f970caae32ebd732dd1;p=thirdparty%2Fopenldap.git ITS#10266 lloadd: Correct NoD handling --- diff --git a/servers/lloadd/upstream.c b/servers/lloadd/upstream.c index 25ff2dd314..78ffcc0f4a 100644 --- a/servers/lloadd/upstream.c +++ b/servers/lloadd/upstream.c @@ -148,7 +148,6 @@ handle_unsolicited( LloadConnection *c, BerElement *ber ) assert( c->c_state != LLOAD_C_INVALID ); if ( c->c_state == LLOAD_C_DYING ) { - CONNECTION_UNLOCK(c); goto out; } c->c_state = LLOAD_C_CLOSING; @@ -208,12 +207,6 @@ handle_unsolicited( LloadConnection *c, BerElement *ber ) RELEASE_REF( client, c_refcnt, client->c_destroy ); } - if ( c->c_state == LLOAD_C_CLOSING && c->c_ops ) { - CONNECTION_UNLOCK(c); - } else { - CONNECTION_DESTROY(c); - } - out: ber_free( ber, 1 ); if ( c->c_state == LLOAD_C_CLOSING && c->c_ops ) {