Switch from sketchy dup() juggling to callbacks to retry outgoing connection.
This commit is contained in:
@@ -64,7 +64,7 @@ static void incoming_handler(struct peer *peer) {
|
||||
local_hbuf, local_sbuf,
|
||||
peer_hbuf, peer_sbuf);
|
||||
|
||||
incoming->handler(fd, incoming->passthrough);
|
||||
incoming->handler(fd, incoming->passthrough, NULL);
|
||||
}
|
||||
|
||||
static void incoming_del(struct incoming *incoming) {
|
||||
|
||||
Reference in New Issue
Block a user