Mercurial > dropbear
comparison packet.c @ 926:b8208506322e
Use AUTH_TIMEOUT only before authdone != 1.
While at it, fix a few indentations and typo.
author | Yousong Zhou <yszhou4tech@gmail.com> |
---|---|
date | Thu, 13 Mar 2014 16:28:16 +0800 |
parents | 4696755c4cac |
children | 7cd89d4e0335 |
comparison
equal
deleted
inserted
replaced
923:25b7ed9fe854 | 926:b8208506322e |
---|---|
85 } | 85 } |
86 written = writev(ses.sock_out, iov, ses.writequeue.count); | 86 written = writev(ses.sock_out, iov, ses.writequeue.count); |
87 if (written < 0) { | 87 if (written < 0) { |
88 if (errno == EINTR) { | 88 if (errno == EINTR) { |
89 m_free(iov); | 89 m_free(iov); |
90 TRACE2(("leave writepacket: EINTR")) | 90 TRACE2(("leave write_packet: EINTR")) |
91 return; | 91 return; |
92 } else { | 92 } else { |
93 dropbear_exit("Error writing"); | 93 dropbear_exit("Error writing"); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 if (written == 0) { | 97 if (written == 0) { |
98 ses.remoteclosed(); | 98 ses.remoteclosed(); |
99 } | 99 } |
100 | 100 |