mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Was crashing if we had more than 20 people on the list and we couldn't
contact the LDAP server.
This commit is contained in:
parent
734272969c
commit
118354d282
@ -133,9 +133,6 @@ foreach c $checkinlist {
|
||||
|
||||
proc GetInfoForPeople {peoplelist} {
|
||||
global ldaperror fullname curcontact errvar ldapserver ldapport
|
||||
if {$ldaperror} {
|
||||
return
|
||||
}
|
||||
set query "(| "
|
||||
set isempty 1
|
||||
foreach p $peoplelist {
|
||||
@ -144,6 +141,9 @@ proc GetInfoForPeople {peoplelist} {
|
||||
set curcontact($p) ""
|
||||
}
|
||||
append query ")"
|
||||
if {$ldaperror} {
|
||||
return
|
||||
}
|
||||
if {[catch {set fid [open "|./data/ldapsearch -b \"o=Netscape Communications Corp.,c=US\" -h $ldapserver -p $ldapport -s sub -S mail \"$query\" mail cn nscpcurcontactinfo" r]} errvar]} {
|
||||
set ldaperror 1
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user