Skip to content
Snippets Groups Projects
Commit 5298b77d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Fix SASL/EXTERNAL looping

parent 283b1678
No related branches found
No related tags found
No related merge requests found
......@@ -388,7 +388,7 @@ int slap_sasl_bind(
#ifdef HAVE_CYRUS_SASL
sasl_conn_t *ctx = conn->c_sasl_context;
struct berval response;
unsigned reslen;
unsigned reslen = 0;
const char *errstr;
int sc;
......@@ -405,7 +405,7 @@ int slap_sasl_bind(
if ( mech != NULL ) {
sc = sasl_server_start( ctx,
mech,
cred->bv_val, cred->bv_len,
cred->bv_len ? cred->bv_val : "", cred->bv_len,
(char **)&response.bv_val, &reslen, &errstr );
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment