]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix signed/unsigned comparison
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 Jul 2011 03:14:25 +0000 (15:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 30 Jul 2011 03:14:25 +0000 (15:14 +1200)
src/auth/basic/UserRequest.cc

index 1d2ceee1baa86fbc34aff2a565fad9c6aab7969c..bad3a2b16bec5534c5125516a0525bc4f3c072f4 100644 (file)
@@ -125,7 +125,7 @@ AuthBasicUserRequest::module_start(RH * handler, void *data)
     if (sz<=0) {
         debugs(9, DBG_CRITICAL, "ERROR: Basic Authentication Failure. Can not build helper validation request.");
         handler(data, NULL);
-    } else if (sz>=sizeof(buf)) {
+    } else if (static_cast<size_t>(sz) >= sizeof(buf)) {
         debugs(9, DBG_CRITICAL, "ERROR: Basic Authentication Failure. user:password exceeds " << sizeof(buf) << " bytes.");
         handler(data, NULL);
     } else