svn commit: r377218 - head/security/openvpn-auth-ldap/files

Matthias Andree mandree at FreeBSD.org
Sat Jan 17 10:28:51 UTC 2015


Author: mandree
Date: Sat Jan 17 10:28:50 2015
New Revision: 377218
URL: https://svnweb.freebsd.org/changeset/ports/377218
QAT: https://qat.redports.org/buildarchive/r377218/

Log:
  Add a fix to prevent crashes on close if initialization failed.

Added:
  head/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m   (contents, props changed)

Added: head/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m	Sat Jan 17 10:28:50 2015	(r377218)
@@ -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];
+ 


More information about the svn-ports-head mailing list