From: Howard Chu Date: Wed, 8 May 2002 23:16:17 +0000 (+0000) Subject: Don't use slap_empty_bv in structures that are expected to be free'able. X-Git-Tag: OPENLDAP_REL_ENG_2_MP~81 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da36670ea3834b6419e14540c618ba2e2a010636;p=openldap Don't use slap_empty_bv in structures that are expected to be free'able. --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index c239f8d346..3d6113b917 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -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;