From 485f47870758e3d56e7a58a78b347e1a60b65148 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 6 Dec 2003 06:12:45 +0000 Subject: [PATCH] Don't free default_referral --- servers/slapd/extended.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/extended.c b/servers/slapd/extended.c index 9f70744e50..2bab109f19 100644 --- a/servers/slapd/extended.c +++ b/servers/slapd/extended.c @@ -323,7 +323,10 @@ done2:; send_ldap_extended( op, rs ); - ber_bvarray_free( rs->sr_ref ); + if ( rs->sr_ref != default_referral ) { + ber_bvarray_free( rs->sr_ref ); + rs->sr_ref = NULL; + } } if ( rs->sr_rspoid != NULL ) { -- 2.39.5