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 d93478b9 authored by deuce's avatar deuce

De-hack and maybe fix?

parent 3489c6cc
...@@ -603,9 +603,8 @@ static BOOL session_check(http_session_t *session, BOOL *rd, BOOL *wr, unsigned ...@@ -603,9 +603,8 @@ static BOOL session_check(http_session_t *session, BOOL *rd, BOOL *wr, unsigned
if (session->is_tls) { if (session->is_tls) {
if(wr) if(wr)
*wr=1; *wr=1;
if(rd) { if(rd || wr == NULL) {
// This MSG_PEEK is a terrible hack. :( if(session->tls_pending) {
if(session->tls_pending || sess_recv(session, &buf, 1, MSG_PEEK) == 1) {
*rd = TRUE; *rd = TRUE;
return TRUE; return TRUE;
} }
......
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