diff options
Diffstat (limited to 'mux.c')
-rw-r--r-- | mux.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: mux.c,v 1.36 2012/07/06 01:37:21 djm Exp $ */ | 1 | /* $OpenBSD: mux.c,v 1.38 2013/01/02 00:32:07 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> | 3 | * Copyright (c) 2002-2008 Damien Miller <djm@openbsd.org> |
4 | * | 4 | * |
@@ -63,10 +63,6 @@ | |||
63 | # include <util.h> | 63 | # include <util.h> |
64 | #endif | 64 | #endif |
65 | 65 | ||
66 | #ifdef HAVE_LIBUTIL_H | ||
67 | # include <libutil.h> | ||
68 | #endif | ||
69 | |||
70 | #include "openbsd-compat/sys-queue.h" | 66 | #include "openbsd-compat/sys-queue.h" |
71 | #include "xmalloc.h" | 67 | #include "xmalloc.h" |
72 | #include "log.h" | 68 | #include "log.h" |
@@ -188,7 +184,7 @@ static const struct { | |||
188 | 184 | ||
189 | /* Cleanup callback fired on closure of mux slave _session_ channel */ | 185 | /* Cleanup callback fired on closure of mux slave _session_ channel */ |
190 | /* ARGSUSED */ | 186 | /* ARGSUSED */ |
191 | static void | 187 | void |
192 | mux_master_session_cleanup_cb(int cid, void *unused) | 188 | mux_master_session_cleanup_cb(int cid, void *unused) |
193 | { | 189 | { |
194 | Channel *cc, *c = channel_by_id(cid); | 190 | Channel *cc, *c = channel_by_id(cid); |
@@ -738,9 +734,9 @@ process_mux_open_fwd(u_int rid, Channel *c, Buffer *m, Buffer *r) | |||
738 | } | 734 | } |
739 | 735 | ||
740 | if (ftype == MUX_FWD_LOCAL || ftype == MUX_FWD_DYNAMIC) { | 736 | if (ftype == MUX_FWD_LOCAL || ftype == MUX_FWD_DYNAMIC) { |
741 | if (channel_setup_local_fwd_listener(fwd.listen_host, | 737 | if (!channel_setup_local_fwd_listener(fwd.listen_host, |
742 | fwd.listen_port, fwd.connect_host, fwd.connect_port, | 738 | fwd.listen_port, fwd.connect_host, fwd.connect_port, |
743 | options.gateway_ports) < 0) { | 739 | options.gateway_ports)) { |
744 | fail: | 740 | fail: |
745 | logit("slave-requested %s failed", fwd_desc); | 741 | logit("slave-requested %s failed", fwd_desc); |
746 | buffer_put_int(r, MUX_S_FAILURE); | 742 | buffer_put_int(r, MUX_S_FAILURE); |