From: Howard Chu Date: Fri, 1 Nov 2002 02:14:55 +0000 (+0000) Subject: Fix sasl_server_start invocation, must pass NULL cred when credlen is 0. X-Git-Tag: NO_SLAP_OP_BLOCKS~818 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=24f1a11cdeffe47f93ae4a0c64bc62b61a764866;p=openldap Fix sasl_server_start invocation, must pass NULL cred when credlen is 0. --- 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 );