]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10266 lloadd: Correct NoD handling 857/head
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 2 Apr 2026 13:10:40 +0000 (14:10 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 14 Apr 2026 17:21:01 +0000 (17:21 +0000)
servers/lloadd/upstream.c

index 25ff2dd3149e48f03051b034403c4a9e8268ed9b..78ffcc0f4a545cdebeb1653da98fc363c62e22a9 100644 (file)
@@ -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 ) {