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

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