summaryrefslogtreecommitdiff
path: root/mail/dbmail/files/patch-0018-Add-definition-for-authldap_free
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2020-06-08 16:23:08 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2020-06-08 16:23:08 +0000
commitb3c3f1890805598642aa44ae71c336f7800298df (patch)
tree69ce5dee8832e6a6d9d21361eca5bd2cd7f840b2 /mail/dbmail/files/patch-0018-Add-definition-for-authldap_free
parentnet/freerdp: update to 2.1.0 (diff)
mail/dbmail: Update version 3.2.3=>3.2.4
- Migrate to Github PR: 247084 Submitted by: fluffy Relnotes: https://github.com/dbmail/dbmail/commit/c9f8fee139215aba52071f1c2ac268e282b0de18
Notes
Notes: svn path=/head/; revision=538230
Diffstat (limited to 'mail/dbmail/files/patch-0018-Add-definition-for-authldap_free')
-rw-r--r--mail/dbmail/files/patch-0018-Add-definition-for-authldap_free63
1 files changed, 0 insertions, 63 deletions
diff --git a/mail/dbmail/files/patch-0018-Add-definition-for-authldap_free b/mail/dbmail/files/patch-0018-Add-definition-for-authldap_free
deleted file mode 100644
index c0f86c1e3b2b..000000000000
--- a/mail/dbmail/files/patch-0018-Add-definition-for-authldap_free
+++ /dev/null
@@ -1,63 +0,0 @@
-From cf3b24b2ea79c262c7827a954da9105a21b2c7d7 Mon Sep 17 00:00:00 2001
-From: Alan Hicks <ahicks@p-o.co.uk>
-Date: Fri, 14 Oct 2016 13:59:56 +0100
-Subject: [PATCH 18/33] Add definition for authldap_free
-
----
- src/modules/authldap.c | 33 +++++++++++++++++----------------
- 1 file changed, 17 insertions(+), 16 deletions(-)
-
-diff --git src/modules/authldap.c src/modules/authldap.c
-index 2bf3b95..065ee31 100644
---- src/modules/authldap.c
-+++ src/modules/authldap.c
-@@ -28,22 +28,7 @@
-
- extern char configFile[PATH_MAX];
-
--/*
-- signal-safe releasing of thread-local ldap connection
--*/
--static void authldap_free(gpointer data)
--{
-- LDAP *c = (LDAP *)data;
-- struct sigaction act, oldact;
--
-- memset(&act, 0, sizeof(act));
-- memset(&oldact, 0, sizeof(oldact));
-- act.sa_handler = SIG_IGN;
-- sigaction(SIGPIPE, &act, &oldact);
-- ldap_unbind(c);
-- sigaction(SIGPIPE, &oldact, 0);
--}
--
-+static void authldap_free(gpointer data);
- static GPrivate ldap_conn_key = G_PRIVATE_INIT (authldap_free);
- static GOnce ldap_conn_once = G_ONCE_INIT;
- static int authldap_connect(void);
-@@ -177,6 +162,22 @@ static LDAP * ldap_con_get(void)
- }
-
- /*
-+ signal-safe releasing of thread-local ldap connection
-+*/
-+static void authldap_free(gpointer data)
-+{
-+ LDAP *c = (LDAP *)data;
-+ struct sigaction act, oldact;
-+
-+ memset(&act, 0, sizeof(act));
-+ memset(&oldact, 0, sizeof(oldact));
-+ act.sa_handler = SIG_IGN;
-+ sigaction(SIGPIPE, &act, &oldact);
-+ ldap_unbind(c);
-+ sigaction(SIGPIPE, &oldact, 0);
-+}
-+
-+/*
- * auth_ldap_bind()
- *
- * Bind to server using config credentials
---
-2.10.1 (Apple Git-78)
-