]> git.sur5r.net Git - openldap/commitdiff
Don't use slap_empty_bv in structures that are expected to be free'able.
authorHoward Chu <hyc@openldap.org>
Wed, 8 May 2002 23:16:17 +0000 (23:16 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 8 May 2002 23:16:17 +0000 (23:16 +0000)
servers/slapd/sasl.c

index c239f8d34621b78e2ce57060781b15016389090e..3d6113b9170c164c11108652d279df2690428d29 100644 (file)
@@ -270,7 +270,8 @@ int slap_sasl_getdn( Connection *conn, char *id, int len,
                rc = dnNormalize2( NULL, dn, &dn2 );
                free(dn->bv_val);
                if ( rc != LDAP_SUCCESS ) {
-                       *dn = slap_empty_bv;
+                       dn->bv_val = NULL;
+                       dn->bv_len = 0;
                        return rc;
                }
                *dn = dn2;