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

Commit e0f415e1 authored by deuce's avatar deuce

If select() returns an error, return it rather than forcing the return value

to zero.
parent 39004fda
......@@ -238,10 +238,8 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i
tv.tv_sec = timeout;
if((ret = select(p->sock+1,&socket_set,NULL,NULL,&tv))==1)
ret = recv(p->sock, buf, len, flags);
ret = 0;
else {
status = cryptPopData(p->session, buf, len, &copied);
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