Print errno information in write_packet

This commit is contained in:
Ronny Meeus 2014-05-20 20:56:59 +08:00
parent 188ec1e258
commit cd700aaf6e

View File

@ -90,7 +90,7 @@ void write_packet() {
TRACE2(("leave write_packet: EINTR")) TRACE2(("leave write_packet: EINTR"))
return; return;
} else { } else {
dropbear_exit("Error writing"); dropbear_exit("Error writing: %s", strerror(errno));
} }
} }
@ -131,7 +131,7 @@ void write_packet() {
TRACE2(("leave writepacket: EINTR")) TRACE2(("leave writepacket: EINTR"))
return; return;
} else { } else {
dropbear_exit("Error writing"); dropbear_exit("Error writing: %s", strerror(errno));
} }
} }
all_ignore = (packet_type == SSH_MSG_IGNORE); all_ignore = (packet_type == SSH_MSG_IGNORE);