summaryrefslogtreecommitdiff
path: root/serverloop.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2009-06-21 18:53:53 +1000
committerDarren Tucker <dtucker@zip.com.au>2009-06-21 18:53:53 +1000
commitc5564e1c4c41ae9af96973e2996e2a4285acbae8 (patch)
treef9fae51c40975704cc73af6073914b00821e3009 /serverloop.c
parent1cc55d7a607455d75db0204b5acebce47667b0f8 (diff)
- andreas@cvs.openbsd.org 2009/05/28 16:50:16
[sshd.c packet.c serverloop.c monitor_wrap.c clientloop.c sshconnect.c monitor.c Added roaming.h roaming_common.c roaming_dummy.c] Keep track of number of bytes read and written. Needed for upcoming changes. Most code from Martin Forssen, maf at appgate dot com. ok markus@ Also, applied appropriate changes to Makefile.in
Diffstat (limited to 'serverloop.c')
-rw-r--r--serverloop.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/serverloop.c b/serverloop.c
index 53cb67d7b..d8cb54bc7 100644
--- a/serverloop.c
+++ b/serverloop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: serverloop.c,v 1.158 2009/05/25 06:48:01 andreas Exp $ */ 1/* $OpenBSD: serverloop.c,v 1.159 2009/05/28 16:50:16 andreas Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -78,6 +78,7 @@
78#include "auth-options.h" 78#include "auth-options.h"
79#include "serverloop.h" 79#include "serverloop.h"
80#include "misc.h" 80#include "misc.h"
81#include "roaming.h"
81 82
82extern ServerOptions options; 83extern ServerOptions options;
83 84
@@ -391,8 +392,11 @@ process_input(fd_set *readset)
391 392
392 /* Read and buffer any input data from the client. */ 393 /* Read and buffer any input data from the client. */
393 if (FD_ISSET(connection_in, readset)) { 394 if (FD_ISSET(connection_in, readset)) {
394 len = read(connection_in, buf, sizeof(buf)); 395 int cont = 0;
396 len = roaming_read(connection_in, buf, sizeof(buf), &cont);
395 if (len == 0) { 397 if (len == 0) {
398 if (cont)
399 return;
396 verbose("Connection closed by %.100s", 400 verbose("Connection closed by %.100s",
397 get_remote_ipaddr()); 401 get_remote_ipaddr());
398 connection_closed = 1; 402 connection_closed = 1;