]> git.sur5r.net Git - openldap/commitdiff
Fix sasl_server_start invocation, must pass NULL cred when credlen is 0.
authorHoward Chu <hyc@openldap.org>
Fri, 1 Nov 2002 02:14:55 +0000 (02:14 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 1 Nov 2002 02:14:55 +0000 (02:14 +0000)
servers/slapd/sasl.c

index fe748bc3b518c5ab3d0c967ae3c5a8bd35a7d22c..53c0c5bfea1145fb450bf9f357b68095534c4668 100644 (file)
@@ -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 );