From 24f1a11cdeffe47f93ae4a0c64bc62b61a764866 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 1 Nov 2002 02:14:55 +0000 Subject: [PATCH] Fix sasl_server_start invocation, must pass NULL cred when credlen is 0. --- servers/slapd/sasl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index fe748bc3b5..53c0c5bfea 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1495,7 +1495,7 @@ int slap_sasl_bind( if ( !conn->c_sasl_bind_in_progress ) { sc = START( ctx, conn->c_sasl_bind_mech.bv_val, - cred->bv_len ? cred->bv_val : "", + cred->bv_len ? cred->bv_val : NULL, cred->bv_len, (SASL_CONST char **)&response.bv_val, &reslen, &errstr ); -- 2.39.5