summaryrefslogtreecommitdiff
path: root/security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
blob: 80e8c794b66e8a193cb0375e1e7e69ba03592f5d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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];