handle the null lud_dn case...

This commit is contained in:
Pierangelo Masarati 2005-04-26 10:34:37 +00:00
parent 6b035aac3e
commit 6076695eb8
2 changed files with 6 additions and 3 deletions

View 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;

View 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;