mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
squidclamav: Fix an error when parsing the client IP address
This commit is contained in:
@@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE)
|
||||
DIR_APP = $(DIR_SRC)/$(THISAPP)
|
||||
TARGET = $(DIR_INFO)/$(THISAPP)
|
||||
PROG = squidclamav
|
||||
PAK_VER = 19
|
||||
PAK_VER = 20
|
||||
|
||||
DEPS = "clamav"
|
||||
|
||||
@@ -79,6 +79,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
@rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidclamav-5.11-dont_use_ipv6.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidclamav-5.11-squid-helper-protocol.patch
|
||||
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/squidclamav-5.11-source-address-parsing-issue.patch
|
||||
cd $(DIR_APP) && ./configure --prefix=/usr
|
||||
cd $(DIR_APP) && make install
|
||||
install -v -m 664 $(DIR_CONF)/squidclamav/squidclamav.conf /etc/squidclamav.conf
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
--- squidclamav-5.11/src/pattern.c~ 2014-10-29 13:08:05.658143495 +0000
|
||||
+++ squidclamav-5.11/src/pattern.c 2014-10-29 13:08:20.964642365 +0000
|
||||
@@ -151,10 +151,6 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
- /* extract source ipaddress and source fqdn */
|
||||
- if (parseSourceAddress(in_buff.src_address, "/") != 0) {
|
||||
- }
|
||||
-
|
||||
if (debug != 0)
|
||||
logit(log_file, "DEBUG Parsed request: %s %s/%s %s %s\n", in_buff.url, in_buff.ipaddress, in_buff.fqdn, in_buff.ident, in_buff.method);
|
||||
|
||||
Reference in New Issue
Block a user