summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2014-03-13 16:28:16 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2014-03-13 16:28:16 +0800
commitc68e790544f3fd7e5abaf500a3f09f0206514d79 (patch)
treeb22938289064a2de51801b9a672023b04d9411ca /packet.c
parent739d388d6be24e7c4c7bd3c0e5bc3f3738c59975 (diff)
downloaddropbear-c68e790544f3fd7e5abaf500a3f09f0206514d79.tar.gz
Use AUTH_TIMEOUT only before authdone != 1.
While at it, fix a few indentations and typo.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index b624c27..8f7aa38 100644
--- a/packet.c
+++ b/packet.c
@@ -87,12 +87,12 @@ void write_packet() {
if (written < 0) {
if (errno == EINTR) {
m_free(iov);
- TRACE2(("leave writepacket: EINTR"))
+ TRACE2(("leave write_packet: EINTR"))
return;
} else {
dropbear_exit("Error writing");
}
- }
+ }
if (written == 0) {
ses.remoteclosed();