]> git.sur5r.net Git - openldap/commitdiff
Don't free default_referral
authorHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 06:12:45 +0000 (06:12 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 6 Dec 2003 06:12:45 +0000 (06:12 +0000)
servers/slapd/extended.c

index 9f70744e5047d9f70f896bbb9f5f15e18ea9bbd8..2bab109f195b2fa15c68e32bffea46787fc7409e 100644 (file)
@@ -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 ) {