Bug 735121 - simple paged search + ip/dns based ACI hangs server
https://bugzilla.redhat.com/show_bug.cgi?id=735121
Resolves: bug 735121
Bug Description: simple paged search + ip/dns based ACI hangs server
Reviewed by: nhosoi (Thanks!)
Branch: 389-ds-base-1.2.9
Fix Description: The pb_conn->c_mutex lock around be->be_next_search_entry()
was too big. Other code inside be->be_next_search_entry needs to lock
the conn. In this particular case, the aci code needed to access the
client ip address from the conn object. The fix is to remove the mutex
around be->be_next_search_entry() in iterate() and instead make sure
code that accesses pb_conn locks first.
Platforms tested: RHEL6 x86_64
Flag Day: no
Doc impact: no
(cherry picked from commit b5f77c693d50ca3acf58eb7a41d9eded59328632)