aboutsummaryrefslogtreecommitdiff
path: root/security/openvpn-auth-ldap
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2015-01-17 10:28:50 +0000
committerMatthias Andree <mandree@FreeBSD.org>2015-01-17 10:28:50 +0000
commit05baf683fe79a690fe6a483d63d95d57b372ef08 (patch)
tree505c87b75841e802e3d24b42894addf4dfe8a5ed /security/openvpn-auth-ldap
parent96098408b6bcadcb32958ff7c2da4e2fdf4215c8 (diff)
downloadports-05baf683fe79a690fe6a483d63d95d57b372ef08.tar.gz
ports-05baf683fe79a690fe6a483d63d95d57b372ef08.zip
Add a fix to prevent crashes on close if initialization failed.
Notes
Notes: svn path=/head/; revision=377218
Diffstat (limited to 'security/openvpn-auth-ldap')
-rw-r--r--security/openvpn-auth-ldap/files/patch-src_auth-ldap.m14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m b/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
new file mode 100644
index 000000000000..80e8c794b66e
--- /dev/null
+++ b/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
@@ -0,0 +1,14 @@
+Fix crash on close if there is no ctx.
+
+--- src/auth-ldap.m.orig 2012-08-15 13:55:46 UTC
++++ src/auth-ldap.m
+@@ -245,6 +245,9 @@ OPENVPN_EXPORT void
+ {
+ ldap_ctx *ctx = handle;
+
++ if (!ctx)
++ return;
++
+ /* Clean up the configuration file */
+ [ctx->config release];
+