]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix use of uninitialized memory in session helper
authorAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 14:23:35 +0000 (08:23 -0600)
committerAmos Jeffries <amosjeffries@squid-cache.org>
Thu, 29 Jul 2010 14:23:35 +0000 (08:23 -0600)
helpers/external_acl/session/ext_session_acl.cc

index d6182a107e743dcb2a55e9f4d14ff5be022fe6ef..b32e164dcaec4a28d41f1fd9a0dcce6c8ab6dc61 100644 (file)
@@ -153,7 +153,7 @@ int main(int argc, char **argv)
         const char *user_key = strtok(request, " \n");
         const char *detail = strtok(NULL, "\n");
         const char *lastdetail = strrchr(detail, ' ');
-        size_t detail_len;
+        size_t detail_len = strlen(detail);
         if (lastdetail) {
             if (strcmp(lastdetail, " LOGIN") == 0) {
                 action = 1;