From da36670ea3834b6419e14540c618ba2e2a010636 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 8 May 2002 23:16:17 +0000 Subject: [PATCH] Don't use slap_empty_bv in structures that are expected to be free'able. --- servers/slapd/sasl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5