On a failed bind, stop the callback from firing again

Not a problem but causes a slew of calls to upstream_bind_cb that will
all fail in the same way.
This commit is contained in:
Ondřej Kuzník 2017-04-21 11:09:58 +01:00 committed by Ondřej Kuzník
parent cddc96322d
commit 028f28690f

View 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);
}