Commit 6efd59ff authored by deuce's avatar deuce
Browse files

Have the return value of js_socket_recv() have something vaugely to do with

the return value if recv() for non-TLS sockets.
parent 622ec0f0
......@@ -171,7 +171,7 @@ static ptrdiff_t js_socket_recv(js_socket_private_t *p, void *buf, size_t len, i
tv.tv_sec = timeout;
if(select(p->sock+1,&socket_set,NULL,NULL,&tv)==1)
ret = recv(p->sock, buf, len, flags);
return 0;
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