From d4225924bc29ef482dd49ce6ec7167b01263405b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 10 Jul 2017 10:23:39 +0100 Subject: [PATCH] CLOSING is another potential state we could be in --- servers/lloadd/upstream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/lloadd/upstream.c b/servers/lloadd/upstream.c index 324de846b3..40b125276b 100644 --- a/servers/lloadd/upstream.c +++ b/servers/lloadd/upstream.c @@ -146,7 +146,8 @@ handle_bind_response( Operation *op, BerElement *ber ) } } } else { - assert( client->c_state == SLAP_C_INVALID ); + assert( client->c_state == SLAP_C_INVALID || + client->c_state == SLAP_C_CLOSING ); } CONNECTION_UNLOCK(client); @@ -258,7 +259,7 @@ handle_vc_bind_response( Operation *op, BerElement *ber ) } } } else { - assert( c->c_state == SLAP_C_INVALID ); + assert( c->c_state == SLAP_C_INVALID || c->c_state == SLAP_C_CLOSING ); } CONNECTION_UNLOCK_INCREF(c);