diff options
author | Volker Stolz <vs@FreeBSD.org> | 2005-05-19 16:22:20 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2005-05-19 16:22:20 +0000 |
commit | f6b66d949e6a54715d323d10747c49d2e5d1b090 (patch) | |
tree | bf58e989c3668d82bfc50d1ec131c7822836a1fa /security/openvpn-devel/files | |
parent | Update to DAT 4495 (diff) |
Plug socket (file descriptor) leak.
PR: ports/81267
Submitted by: Jaroslav Klaus via maintainer
Notes
Notes:
svn path=/head/; revision=135628
Diffstat (limited to 'security/openvpn-devel/files')
-rw-r--r-- | security/openvpn-devel/files/patch-route.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/security/openvpn-devel/files/patch-route.c b/security/openvpn-devel/files/patch-route.c new file mode 100644 index 000000000000..45a3a2cb3cc7 --- /dev/null +++ b/security/openvpn-devel/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; + |