diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/serverloop.c b/serverloop.c index a777a048d..8d2642d5b 100644 --- a/serverloop.c +++ b/serverloop.c | |||
@@ -35,7 +35,7 @@ | |||
35 | */ | 35 | */ |
36 | 36 | ||
37 | #include "includes.h" | 37 | #include "includes.h" |
38 | RCSID("$OpenBSD: serverloop.c,v 1.115 2004/01/19 21:25:15 markus Exp $"); | 38 | RCSID("$OpenBSD: serverloop.c,v 1.116 2004/05/21 11:33:11 djm Exp $"); |
39 | 39 | ||
40 | #include "xmalloc.h" | 40 | #include "xmalloc.h" |
41 | #include "packet.h" | 41 | #include "packet.h" |
@@ -991,6 +991,17 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) | |||
991 | listen_address, listen_port, options.gateway_ports); | 991 | listen_address, listen_port, options.gateway_ports); |
992 | } | 992 | } |
993 | xfree(listen_address); | 993 | xfree(listen_address); |
994 | } else if (strcmp(rtype, "cancel-tcpip-forward") == 0) { | ||
995 | char *cancel_address; | ||
996 | u_short cancel_port; | ||
997 | |||
998 | cancel_address = packet_get_string(NULL); | ||
999 | cancel_port = (u_short)packet_get_int(); | ||
1000 | debug("%s: cancel-tcpip-forward addr %s port %d", __func__, | ||
1001 | cancel_address, cancel_port); | ||
1002 | |||
1003 | success = channel_cancel_rport_listener(cancel_address, | ||
1004 | cancel_port); | ||
994 | } | 1005 | } |
995 | if (want_reply) { | 1006 | if (want_reply) { |
996 | packet_start(success ? | 1007 | packet_start(success ? |