]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
On a failed bind, stop the callback from firing again
authorOndřej Kuzník <ondra@mistotebe.net>
Fri, 21 Apr 2017 10:09:58 +0000 (11:09 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
Not a problem but causes a slew of calls to upstream_bind_cb that will
all fail in the same way.

servers/lloadd/upstream.c

index 680a677d9c7b65b183081bd853e68bf75c558944..a77d88a42b63b691e3e9e3ad3d8df475d1df63fd 100644 (file)
@@ -638,6 +638,7 @@ upstream_bind_cb( evutil_socket_t s, short what, void *arg )
     return;
 
 fail:
+    event_del( c->c_read_event );
     ber_free( ber, 1 );
     UPSTREAM_DESTROY(c);
 }