From: Amos Jeffries Date: Mon, 10 Oct 2011 03:27:47 +0000 (-0600) Subject: Fix eCAP build failure with --disable-auth X-Git-Tag: BumpSslServerFirst.take01~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=321f219cac01aa4949e21d8a382f56e9b0e46125;p=thirdparty%2Fsquid.git Fix eCAP build failure with --disable-auth --- diff --git a/src/adaptation/ecap/XactionRep.cc b/src/adaptation/ecap/XactionRep.cc index f2a97267e2..7e6888e041 100644 --- a/src/adaptation/ecap/XactionRep.cc +++ b/src/adaptation/ecap/XactionRep.cc @@ -133,6 +133,7 @@ Adaptation::Ecap::XactionRep::clientIpValue() const const libecap::Area Adaptation::Ecap::XactionRep::usernameValue() const { +#if USE_AUTH const HttpRequest *request = dynamic_cast(theCauseRep ? theCauseRep->raw().header : theVirginRep.raw().header); Must(request); @@ -140,6 +141,7 @@ Adaptation::Ecap::XactionRep::usernameValue() const if (char const *name = request->auth_user_request->username()) return libecap::Area::FromTempBuffer(name, strlen(name)); } +#endif return libecap::Area(); }