freebsd-ports/www/webalizer/files/patch-agent-bug
Dirk Meyer ea5f3d2798 - Security Fix
Submitted by:	Andrey Chernov
2005-11-20 09:10:18 +00:00

29 lines
632 B
Text

--- webalizer.c.orig Sun Nov 20 09:52:31 2005
+++ webalizer.c Sun Nov 20 09:54:10 2005
@@ -805,7 +805,7 @@
if (mangle_agent<2)
{
/* Level 1 - try to get OS */
- cp1=strstr(str,")");
+ cp1=strstr(cp1,")");
if (cp1!=NULL)
{
*cp2++=' ';
@@ -840,7 +840,7 @@
*cp2++=*cp1++;
if (mangle_agent<2)
{
- cp1=strstr(str,"(");
+ cp1=strstr(cp1,"(");
if (cp1!=NULL)
{
cp1++;
@@ -873,7 +873,7 @@
if (mangle_agent<2)
{
/* Level 1 - Try to get OS */
- cp1=strstr(str,"(");
+ cp1=strstr(cp1,"(");
if (cp1!=NULL)
{
cp1++;