openbsd-ports/www/squid/patches/patch-src_client_side_c
merdely c324015314 Update to Squid 2.6.STABLE16.
From brad (MAINTAINER)
ok sthen@
2007-09-10 17:49:23 +00:00

13 lines
446 B
Plaintext

$OpenBSD: patch-src_client_side_c,v 1.14 2007/09/10 17:49:23 merdely Exp $
--- src/client_side.c.orig Mon Sep 3 09:13:36 2007
+++ src/client_side.c Wed Sep 5 21:00:34 2007
@@ -4441,7 +4441,7 @@ clientNatLookup(ConnStateData * conn)
static int pffd = -1;
static time_t last_reported = 0;
if (pffd < 0) {
- pffd = open("/dev/pf", O_RDWR);
+ pffd = open("/dev/pf", O_RDONLY);
if (pffd >= 0)
commSetCloseOnExec(pffd);
}