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
if (session->is_tls) {
if(wr)
*wr=1;
if(rd) {
// This MSG_PEEK is a terrible hack. :(
if(session->tls_pending || sess_recv(session, &buf, 1, MSG_PEEK) == 1) {
if(rd || wr == NULL) {
if(session->tls_pending) {
*rd = 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