From: Amos Jeffries Date: Sun, 9 Oct 2011 07:51:22 +0000 (+1300) Subject: Bug 3363: never_direct always 'unable to forward this request at this time' X-Git-Tag: BumpSslServerFirst.take01~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f365d297b61a89f6168af8dc2343325fdd0f848a;p=thirdparty%2Fsquid.git Bug 3363: never_direct always 'unable to forward this request at this time' never_direct allow test result was mapping to YES insteaad of NO. --- diff --git a/src/peer_select.cc b/src/peer_select.cc index 209bb6d760..52e37f87ea 100644 --- a/src/peer_select.cc +++ b/src/peer_select.cc @@ -177,8 +177,8 @@ peerCheckNeverDirectDone(allow_t answer, void *data) psstate->never_direct = answer; switch (answer) { case ACCESS_ALLOWED: - /** if always_direct says YES, do that. */ - psstate->direct = DIRECT_YES; + /** if never_direct says YES, do that. */ + psstate->direct = DIRECT_NO; debugs(44, 3, HERE << "direct = " << DirectStr[psstate->direct] << " (never_direct allow)"); break; case ACCESS_DENIED: // not relevant.