[Date Prev][Date Next] [Chronological] [Thread] [Top]

slurpd crash (ITS#2320)



Full_Name: Eli Elhadad
Version: 2.1.12
OS: win2k pro
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (212.179.203.232)


/slurpd/servers/slurpd/re.c line 590 
i've encontered the situation where the re->re_replicas is NULL
the above line do:
for ( i = 0; re->re_replicas[ i ].rh_hostname != NULL; i++ )

do if re->re_replicas is NULL the process crash.

by doing:
for ( i = 0; re->re_replicas && re->re_replicas[ i ].rh_hostname != NULL; i++ )

all works well