diff packet.c @ 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 7cd89d4e0335
children c919dbb39395
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);