opnsense-ports/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
Franco Fichtner a737ce6b05 */*: sync previously available, but unused ports
Taken from: FreeBSD
2015-04-22 06:45:04 +02:00

14 lines
290 B
Objective-C

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];