Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 4024e51a authored by deuce's avatar deuce
Browse files

Fix an error nobody has ever seen.

parent 2c84e156
...@@ -2212,8 +2212,9 @@ static int recvbufsocket(http_session_t *session, char *buf, long count) ...@@ -2212,8 +2212,9 @@ static int recvbufsocket(http_session_t *session, char *buf, long count)
i=sess_recv(session,buf+rd,count-rd,0); i=sess_recv(session,buf+rd,count-rd,0);
switch(i) { switch(i) {
case -1: case -1:
if(session->is_tls || ERROR_VALUE!=EAGAIN) if (ERROR_VALUE == EAGAIN && !session->is_tls)
close_session_socket(session); break;
// Fall-through...
case 0: case 0:
close_session_socket(session); close_session_socket(session);
*buf=0; *buf=0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment