git: c306c212d40f - 2021Q2 - security/openvpn: band-aid fix for SIGSEGV on push echo
Matthias Andree
mandree at FreeBSD.org
Thu Jun 3 12:35:19 UTC 2021
The branch 2021Q2 has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=c306c212d40f2112cd0713e53add1e7851393dc3
commit c306c212d40f2112cd0713e53add1e7851393dc3
Author: Matthias Andree <mandree at FreeBSD.org>
AuthorDate: 2021-06-03 10:47:16 +0000
Commit: Matthias Andree <mandree at FreeBSD.org>
CommitDate: 2021-06-03 12:34:57 +0000
security/openvpn: band-aid fix for SIGSEGV on push echo
PR: 256331
Reported by: peo at nethead.se
(cherry picked from commit 6c20c4906a3b0f805c932f4e74ef7f62086e704d)
---
security/openvpn/Makefile | 2 +-
security/openvpn/files/patch-src_openvpn_options.c | 11 +++++++++++
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile
index 4a82851e65f1..9119e2dfa9ab 100644
--- a/security/openvpn/Makefile
+++ b/security/openvpn/Makefile
@@ -2,7 +2,7 @@
PORTNAME= openvpn
DISTVERSION= 2.5.2
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= security net net-vpn
MASTER_SITES= https://swupdate.openvpn.org/community/releases/ \
https://build.openvpn.net/downloads/releases/ \
diff --git a/security/openvpn/files/patch-src_openvpn_options.c b/security/openvpn/files/patch-src_openvpn_options.c
new file mode 100644
index 000000000000..e46faee8efd0
--- /dev/null
+++ b/security/openvpn/files/patch-src_openvpn_options.c
@@ -0,0 +1,11 @@
+--- src/openvpn/options.c.orig 2021-04-21 04:02:50 UTC
++++ src/openvpn/options.c
+@@ -5319,7 +5319,7 @@ add_option(struct options *options,
+ {
+ /* only message-related ECHO are logged, since other ECHOs
+ * can potentially include security-sensitive strings */
+- if (strncmp(p[1], "msg", 3) == 0)
++ if (p[1] && strncmp(p[1], "msg", 3) == 0)
+ {
+ msg(M_INFO, "%s:%s",
+ pull_mode ? "ECHO-PULL" : "ECHO",
More information about the dev-commits-ports-all
mailing list