summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/idevice.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/idevice.c b/src/idevice.c
index cad1431..af87e61 100644
--- a/src/idevice.c
+++ b/src/idevice.c
@@ -504,9 +504,13 @@ static ssize_t internal_ssl_read(gnutls_transport_ptr_t transport, char *buffer,
504static ssize_t internal_ssl_write(gnutls_transport_ptr_t transport, char *buffer, size_t length) 504static ssize_t internal_ssl_write(gnutls_transport_ptr_t transport, char *buffer, size_t length)
505{ 505{
506 uint32_t bytes = 0; 506 uint32_t bytes = 0;
507 idevice_error_t res;
507 idevice_connection_t connection = (idevice_connection_t)transport; 508 idevice_connection_t connection = (idevice_connection_t)transport;
508 debug_info("pre-send length = %zi", length); 509 debug_info("pre-send length = %zi", length);
509 internal_connection_send(connection, buffer, length, &bytes); 510 if ((res = internal_connection_send(connection, buffer, length, &bytes)) != IDEVICE_E_SUCCESS) {
511 debug_info("ERROR: internal_connection_send returned %d", res);
512 return -1;
513 }
510 debug_info("post-send sent %i bytes", bytes); 514 debug_info("post-send sent %i bytes", bytes);
511 return bytes; 515 return bytes;
512} 516}