]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
CLOSING is another potential state we could be in
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 10 Jul 2017 09:23:39 +0000 (10:23 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/upstream.c

index 324de846b3da0429696a89f7248eb2c430147ca8..40b125276bf3f95a6e93f8a90d29aa08cd977fee 100644 (file)
@@ -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);