diff options
Diffstat (limited to 'serverloop.c')
-rw-r--r-- | serverloop.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/serverloop.c b/serverloop.c index 6dbb4fd12..050081018 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.110 2003/06/24 08:23:46 markus Exp $"); | 38 | RCSID("$OpenBSD: serverloop.c,v 1.106 2003/04/01 10:22:21 markus Exp $"); |
39 | 39 | ||
40 | #include "xmalloc.h" | 40 | #include "xmalloc.h" |
41 | #include "packet.h" | 41 | #include "packet.h" |
@@ -158,7 +158,7 @@ sigchld_handler(int sig) | |||
158 | static void | 158 | static void |
159 | make_packets_from_stderr_data(void) | 159 | make_packets_from_stderr_data(void) |
160 | { | 160 | { |
161 | u_int len; | 161 | int len; |
162 | 162 | ||
163 | /* Send buffered stderr data to the client. */ | 163 | /* Send buffered stderr data to the client. */ |
164 | while (buffer_len(&stderr_buffer) > 0 && | 164 | while (buffer_len(&stderr_buffer) > 0 && |
@@ -187,7 +187,7 @@ make_packets_from_stderr_data(void) | |||
187 | static void | 187 | static void |
188 | make_packets_from_stdout_data(void) | 188 | make_packets_from_stdout_data(void) |
189 | { | 189 | { |
190 | u_int len; | 190 | int len; |
191 | 191 | ||
192 | /* Send buffered stdout data to the client. */ | 192 | /* Send buffered stdout data to the client. */ |
193 | while (buffer_len(&stdout_buffer) > 0 && | 193 | while (buffer_len(&stdout_buffer) > 0 && |
@@ -771,14 +771,8 @@ server_loop2(Authctxt *authctxt) | |||
771 | &nalloc, 0); | 771 | &nalloc, 0); |
772 | 772 | ||
773 | collect_children(); | 773 | collect_children(); |
774 | if (!rekeying) { | 774 | if (!rekeying) |
775 | channel_after_select(readset, writeset); | 775 | channel_after_select(readset, writeset); |
776 | if (packet_need_rekeying()) { | ||
777 | debug("need rekeying"); | ||
778 | xxx_kex->done = 0; | ||
779 | kex_send_kexinit(xxx_kex); | ||
780 | } | ||
781 | } | ||
782 | process_input(readset); | 776 | process_input(readset); |
783 | if (connection_closed) | 777 | if (connection_closed) |
784 | break; | 778 | break; |
@@ -880,7 +874,7 @@ server_request_direct_tcpip(char *ctype) | |||
880 | return NULL; | 874 | return NULL; |
881 | c = channel_new(ctype, SSH_CHANNEL_CONNECTING, | 875 | c = channel_new(ctype, SSH_CHANNEL_CONNECTING, |
882 | sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT, | 876 | sock, sock, -1, CHAN_TCP_WINDOW_DEFAULT, |
883 | CHAN_TCP_PACKET_DEFAULT, 0, "direct-tcpip", 1); | 877 | CHAN_TCP_PACKET_DEFAULT, 0, xstrdup("direct-tcpip"), 1); |
884 | return c; | 878 | return c; |
885 | } | 879 | } |
886 | 880 | ||
@@ -899,7 +893,7 @@ server_request_session(char *ctype) | |||
899 | */ | 893 | */ |
900 | c = channel_new(ctype, SSH_CHANNEL_LARVAL, | 894 | c = channel_new(ctype, SSH_CHANNEL_LARVAL, |
901 | -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, | 895 | -1, -1, -1, /*window size*/0, CHAN_SES_PACKET_DEFAULT, |
902 | 0, "server-session", 1); | 896 | 0, xstrdup("server-session"), 1); |
903 | if (session_open(xxx_authctxt, c->self) != 1) { | 897 | if (session_open(xxx_authctxt, c->self) != 1) { |
904 | debug("session open failed, free channel %d", c->self); | 898 | debug("session open failed, free channel %d", c->self); |
905 | channel_free(c); | 899 | channel_free(c); |
@@ -977,7 +971,7 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt) | |||
977 | pw = auth_get_user(); | 971 | pw = auth_get_user(); |
978 | if (pw == NULL) | 972 | if (pw == NULL) |
979 | fatal("server_input_global_request: no user"); | 973 | fatal("server_input_global_request: no user"); |
980 | listen_address = packet_get_string(NULL); | 974 | listen_address = packet_get_string(NULL); /* XXX currently ignored */ |
981 | listen_port = (u_short)packet_get_int(); | 975 | listen_port = (u_short)packet_get_int(); |
982 | debug("server_input_global_request: tcpip-forward listen %s port %d", | 976 | debug("server_input_global_request: tcpip-forward listen %s port %d", |
983 | listen_address, listen_port); | 977 | listen_address, listen_port); |