Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jan 2015 10:28:50 +0000 (UTC)
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r377218 - head/security/openvpn-auth-ldap/files
Message-ID:  <201501171028.t0HASoKs065204@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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];
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201501171028.t0HASoKs065204>