Mercurial > dropbear
changeset 932:3873b39c4de6
Print errno information in write_packet
author | Ronny Meeus <ronny.meeus@gmail.com> |
---|---|
date | Tue, 20 May 2014 20:56:59 +0800 |
parents | ac340d3e452e |
children | c919dbb39395 |
files | packet.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packet.c Wed Apr 23 16:22:50 2014 +0800 +++ b/packet.c Tue May 20 20:56:59 2014 +0800 @@ -90,7 +90,7 @@ TRACE2(("leave write_packet: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } @@ -131,7 +131,7 @@ TRACE2(("leave writepacket: EINTR")) return; } else { - dropbear_exit("Error writing"); + dropbear_exit("Error writing: %s", strerror(errno)); } } all_ignore = (packet_type == SSH_MSG_IGNORE);