]> git.sur5r.net Git - openldap/commitdiff
handle the null lud_dn case...
authorPierangelo Masarati <ando@openldap.org>
Tue, 26 Apr 2005 10:34:37 +0000 (10:34 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 26 Apr 2005 10:34:37 +0000 (10:34 +0000)
servers/slapd/back-meta/map.c
servers/slapd/overlays/rwmmap.c

index 5021fc5c59f3da827b5b38e9e980811d4d4695d3..d248d418663d0308e13ebb80c9fe97a9912df736 100644 (file)
@@ -585,7 +585,8 @@ ldap_back_referral_result_rewrite(
        last--;
 
        for ( i = 0; !BER_BVISNULL( &a_vals[ i ] ); i++ ) {
-               struct berval   dn, olddn;
+               struct berval   dn,
+                               olddn = BER_BVNULL;
                int             rc;
                LDAPURLDesc     *ludp;
 
index e8a630cce6c57d115d33778ccbe478bf365412c7..62bb845685367631c3a5c3fd739214bfd9455907 100644 (file)
@@ -807,7 +807,8 @@ rwm_referral_rewrite(
        }
 
        for ( i = 0; !BER_BVISNULL( &a_vals[i] ); i++ ) {
-               struct berval   olddn, oldval;
+               struct berval   olddn = BER_BVNULL,
+                               oldval;
                int             rc;
                LDAPURLDesc     *ludp;
 
@@ -1059,7 +1060,8 @@ rwm_referral_result_rewrite(
        last--;
 
        for ( i = 0; !BER_BVISNULL( &a_vals[i] ); i++ ) {
-               struct berval   dn, olddn;
+               struct berval   dn,
+                               olddn = BER_BVNULL;
                int             rc;
                LDAPURLDesc     *ludp;