diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-08 20:16:25 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-07-08 20:16:25 +0000 |
commit | f154d0e78c715fdc48f3bfcafdfbae69feeec1bb (patch) | |
tree | 43c0a799ca660d562681151e4ffdc1086d445481 /src | |
parent | 358cd09f71e153551db3e2d29e0e11be798378e1 (diff) |
Spurious test leading to have a broken non-SSL version of httrack
Diffstat (limited to 'src')
-rw-r--r-- | src/htsback.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/htsback.c b/src/htsback.c index 45a60bb..9558f3d 100644 --- a/src/htsback.c +++ b/src/htsback.c @@ -2499,9 +2499,12 @@ void back_wait(struct_back * sback, httrackp * opt, cache_back * cache, // vérification de sécurité if (back[i].r.soc != INVALID_SOCKET) { // hey, you never know.. - // Do not endlessly wait when receiving SSL http data (Patrick Pfeifer) + if ( + // Do not endlessly wait when receiving SSL http data (Patrick Pfeifer) #if HTS_USEOPENSSL - if (!(back[i].r.ssl && back[i].status > 0 && back[i].status < 1000)) { + !back[i].r.ssl && +#endif + back[i].status > 0 && back[i].status < 1000) { do_wait = 1; // noter socket read @@ -2522,7 +2525,6 @@ void back_wait(struct_back * sback, httrackp * opt, cache_back * cache, nfds = back[i].r.soc; } } -#endif } else { back[i].r.statuscode = STATUSCODE_CONNERROR; if (back[i].status == STATUS_CONNECTING) |