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

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