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