Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 07:52:11 GMT
From:      Roman <sylvian@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   www/176468: SAMS can not use the mask /32, with authorization by IP address.
Message-ID:  <201302270752.r1R7qBTK011493@red.freebsd.org>
Resent-Message-ID: <201302270800.r1R801hU017721@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176468
>Category:       www
>Synopsis:       SAMS can not use the mask /32, with authorization by IP address.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-www
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 08:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Roman
>Release:        9.1
>Organization:
>Environment:
9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
SQUID, starting with version 3.1, requires CIDR masks in the configuration files. SAMS does not work with this type of mask.
>How-To-Repeat:

>Fix:
Edit samsdaemon.c and recompile it

=======================
diff samsdaemon.c_orig samsdaemon.c
1957c1957
<                 if((strcmp(row[1],"ip")==0||strlen(row[1])==0)&&RREJIK==0&&strlen(row2[11])>4&&strlen(row2[12])>4)
---
>                 if((strcmp(row[1],"ip")==0||strlen(row[1])==0)&&RREJIK==0&&strlen(row2[11])>4&&strlen(row2[12])>1)
1961c1961
<                   if(strlen(row2[11]) > 4 && strlen(row2[12]) > 4) {
---
>                   if(strlen(row2[11]) > 4 && strlen(row2[12]) > 1) {
=======================

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302270752.r1R7qBTK011493>