diff --git a/servers/slapd/referral.c b/servers/slapd/referral.c index 2378c87120..ce3e4529f2 100644 --- a/servers/slapd/referral.c +++ b/servers/slapd/referral.c @@ -225,7 +225,7 @@ BerVarray referral_rewrite( for ( iv = in, jv = refs; !BER_BVISNULL( iv ); iv++ ) { LDAPURLDesc *url; - char *dn = url->lud_dn; + char *dn; int rc; rc = ldap_url_parse_ext( iv->bv_val, &url );