From: Amos Jeffries Date: Thu, 29 Jul 2010 14:23:35 +0000 (-0600) Subject: Fix use of uninitialized memory in session helper X-Git-Tag: SQUID_3_2_0_1~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=669c316bb5c92ccc3d1be37eddbd58ae93cf2511;p=thirdparty%2Fsquid.git Fix use of uninitialized memory in session helper --- diff --git a/helpers/external_acl/session/ext_session_acl.cc b/helpers/external_acl/session/ext_session_acl.cc index d6182a107e..b32e164dca 100644 --- a/helpers/external_acl/session/ext_session_acl.cc +++ b/helpers/external_acl/session/ext_session_acl.cc @@ -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;