Revision: 14402
Author: adrian.chadd
Date: Sat Feb 13 02:55:15 2010
Log: Attempt to address Issue 56 - zero the HTCP temporary variable before using it to build a reply packet.


http://code.google.com/p/lusca-cache/source/detail?r=14402

Modified:
 /branches/LUSCA_HEAD/src/htcp.c

=======================================
--- /branches/LUSCA_HEAD/src/htcp.c     Mon Oct 26 23:58:33 2009
+++ /branches/LUSCA_HEAD/src/htcp.c     Sat Feb 13 02:55:15 2010
@@ -1214,6 +1214,7 @@

     old_squid_format = p->options.htcp_oldsquid;
     memset(&flags, '\0', sizeof(flags));
+    memset(&stuff, '\0', sizeof(stuff));
     snprintf(vbuf, sizeof(vbuf), "%d/%d",
        req->http_ver.major, req->http_ver.minor);
     stuff.op = HTCP_TST;
@@ -1262,6 +1263,7 @@

     old_squid_format = p->options.htcp_oldsquid;
     memset(&flags, '\0', sizeof(flags));
+    memset(&stuff, '\0', sizeof(stuff));
     snprintf(vbuf, sizeof(vbuf), "%d/%d",
        req->http_ver.major, req->http_ver.minor);
     stuff.op = HTCP_CLR;

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to