Blame SOURCES/0071-Fix-cherry-pick-error-from-sasl-mech-commit.patch

b69e47
From 4a51a17762fb4e7ce1beb0600916fed8b45a5483 Mon Sep 17 00:00:00 2001
b69e47
From: Mark Reynolds <mreynolds@redhat.com>
b69e47
Date: Mon, 18 Sep 2017 15:06:06 -0400
b69e47
Subject: [PATCH] Fix cherry-pick error from sasl mech commit
b69e47
b69e47
---
b69e47
 ldap/servers/slapd/saslbind.c | 3 +++
b69e47
 1 file changed, 3 insertions(+)
b69e47
b69e47
diff --git a/ldap/servers/slapd/saslbind.c b/ldap/servers/slapd/saslbind.c
b69e47
index 03e2a97..8e94ee6 100644
b69e47
--- a/ldap/servers/slapd/saslbind.c
b69e47
+++ b/ldap/servers/slapd/saslbind.c
b69e47
@@ -745,11 +745,14 @@ char **ids_sasl_listmech(Slapi_PBlock *pb)
b69e47
     const char *str;
b69e47
     char *dupstr;
b69e47
     sasl_conn_t *sasl_conn;
b69e47
+    Connection *pb_conn = NULL;
b69e47
 
b69e47
     slapi_log_err(SLAPI_LOG_TRACE, "ids_sasl_listmech", "=>\n");
b69e47
 
b69e47
     PR_ASSERT(pb);
b69e47
 
b69e47
+    slapi_pblock_get(pb, SLAPI_CONNECTION, &pb_conn);
b69e47
+
b69e47
     /* hard-wired mechanisms and slapi plugin registered mechanisms */
b69e47
     sup_ret = slapi_get_supported_saslmechanisms_copy();
b69e47
 
b69e47
-- 
b69e47
2.9.5
b69e47