aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-09-21 14:23:58 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2020-09-21 14:23:58 +0300
commit274a4fb1e48f17acf9039decc52306821caa8b06 (patch)
tree525829f01bcf5eec13d1770cb0d7e1a9c876c6b9
parent035048e67676e25146e248ac7e09ea09fce3e5ea (diff)
downloadlibmicrohttpd-274a4fb1e48f17acf9039decc52306821caa8b06.tar.gz
libmicrohttpd-274a4fb1e48f17acf9039decc52306821caa8b06.zip
test_upgrade_large: fixed: don't override errno
-rw-r--r--src/microhttpd/test_upgrade_large.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c
index a4d339ad..4a6e741a 100644
--- a/src/microhttpd/test_upgrade_large.c
+++ b/src/microhttpd/test_upgrade_large.c
@@ -610,16 +610,13 @@ send_all (struct wr_socket *sock,
610 ret = wr_send (sock, 610 ret = wr_send (sock,
611 &text[off], 611 &text[off],
612 len - off); 612 len - off);
613 kick_select ();
614 if (0 > ret) 613 if (0 > ret)
615 { 614 {
616 if (MHD_SCKT_ERR_IS_EAGAIN_ (MHD_socket_get_error_ ())) 615 if (!MHD_SCKT_ERR_IS_EAGAIN_ (MHD_socket_get_error_()))
617 { 616 abort ();
618 ret = 0; 617 ret = 0;
619 continue;
620 }
621 abort ();
622 } 618 }
619 kick_select ();
623 } 620 }
624} 621}
625 622