mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 02:53:10 -04:00
Add a fix to prevent crashes on close if initialization failed.
This commit is contained in:
parent
96098408b6
commit
05baf683fe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377218
1 changed files with 14 additions and 0 deletions
14
security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
Normal file
14
security/openvpn-auth-ldap/files/patch-src_auth-ldap.m
Normal file
|
@ -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];
|
||||
|
Loading…
Add table
Reference in a new issue