From: Howard Chu Date: Sat, 6 Dec 2003 06:12:45 +0000 (+0000) Subject: Don't free default_referral X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~268 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=485f47870758e3d56e7a58a78b347e1a60b65148;p=openldap Don't free default_referral --- 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 ) {