summaryrefslogtreecommitdiffhomepage
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
commit5baa10a6b6f074acdbff8988773530ce66485092 (patch)
tree58865886f27bd8998e9f8881230efc917cb90f77 /packet.c
parent3e1a389629935fe179d194657730a4502a6f99f6 (diff)
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();