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

Fix an error nobody has ever seen.

parent 2c84e156
......@@ -2212,8 +2212,9 @@ static int recvbufsocket(http_session_t *session, char *buf, long count)
i=sess_recv(session,buf+rd,count-rd,0);
switch(i) {
case -1:
if(session->is_tls || ERROR_VALUE!=EAGAIN)
close_session_socket(session);
if (ERROR_VALUE == EAGAIN && !session->is_tls)
break;
// Fall-through...
case 0:
close_session_socket(session);
*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