ITS#10266 lloadd: Correct NoD handling

This commit is contained in:
Ondřej Kuzník 2026-04-02 14:10:40 +01:00 committed by Quanah Gibson-Mount
parent c1c652d8b9
commit 3f07e6fbfb

View 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 ) {