www/176468: SAMS can not use the mask /32, with authorization by IP address.

Roman sylvian at mail.ru
Wed Feb 27 08:00:01 UTC 2013


>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 at 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:


More information about the freebsd-www mailing list