diff options
author | vs <vs@FreeBSD.org> | 2005-05-20 00:22:20 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2005-05-20 00:22:20 +0800 |
commit | 86a1de0d783f4273e9fdcc95fa3c364a6a604ae8 (patch) | |
tree | 039cb80ead442aa702f99ce9dcb3cb8c5ef9a458 /security/openvpn | |
parent | 5240b983c4c079d0e18098471a417d2efd810868 (diff) | |
download | freebsd-ports-gnome-86a1de0d783f4273e9fdcc95fa3c364a6a604ae8.tar.gz freebsd-ports-gnome-86a1de0d783f4273e9fdcc95fa3c364a6a604ae8.tar.zst freebsd-ports-gnome-86a1de0d783f4273e9fdcc95fa3c364a6a604ae8.zip |
Plug socket (file descriptor) leak.
PR: ports/81267
Submitted by: Jaroslav Klaus via maintainer
Diffstat (limited to 'security/openvpn')
-rw-r--r-- | security/openvpn/Makefile | 1 | ||||
-rw-r--r-- | security/openvpn/files/patch-route.c | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile index af6f794fbe9e..b62432845ee9 100644 --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -7,6 +7,7 @@ PORTNAME= openvpn DISTVERSION= 2.0 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://openvpn.net/release/ diff --git a/security/openvpn/files/patch-route.c b/security/openvpn/files/patch-route.c new file mode 100644 index 000000000000..45a3a2cb3cc7 --- /dev/null +++ b/security/openvpn/files/patch-route.c @@ -0,0 +1,50 @@ +--- route.c.orig Mon Apr 11 05:43:56 2005 ++++ route.c Mon May 16 21:13:41 2005 +@@ -1380,6 +1380,7 @@ + { + warn("writing to routing socket"); + gc_free (&gc); ++ close(s); + return false; + } + +@@ -1387,6 +1388,7 @@ + l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg)); + } while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid)); + ++ close(s); + + rtm_aux = &rtm; + +@@ -1535,6 +1537,7 @@ + { + msg (M_WARN, "ROUTE: problem writing to routing socket"); + gc_free (&gc); ++ close(s); + return false; + } + +@@ -1542,6 +1545,7 @@ + l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg)); + } while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid)); + ++ close(s); + + rtm_aux = &rtm; + +@@ -1690,6 +1694,7 @@ + { + warn("writing to routing socket"); + gc_free (&gc); ++ close(s); + return false; + } + +@@ -1697,6 +1702,7 @@ + l = read(s, (char *)&m_rtmsg, sizeof(m_rtmsg)); + } while (l > 0 && (rtm.rtm_seq != seq || rtm.rtm_pid != pid)); + ++ close(s); + + rtm_aux = &rtm; + |