mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-17 14:00:30 +08:00
ITS#798: Fix one-shot mode with empty file
This commit is contained in:
parent
01f862dc95
commit
6d273e716d
1
CHANGES
1
CHANGES
@ -6,6 +6,7 @@ OpenLDAP 2.0.X Engineering
|
||||
Fixed slapd idletimeout lock bug (ITS#767)
|
||||
Fixed slapd caseIgnoreIA5string indexing bug (ITS#786)
|
||||
Fixed slurpd TLS initialization bug (ITS#768)
|
||||
Fixed slurpd empty one shot hang (ITS#798)
|
||||
Fixed -lldap SASL ctx close bug (ITS#790)
|
||||
Fixed -lldap first/next attribute bug (ITS#778)
|
||||
Fixed -lldap (v2) rebind URL bug
|
||||
|
@ -62,7 +62,13 @@ Ri_process(
|
||||
rq->rq_lock( rq );
|
||||
while ( !sglob->slurpd_shutdown &&
|
||||
(( re = rq->rq_gethead( rq )) == NULL )) {
|
||||
/* No work - wait on condition variable */
|
||||
/* No work */
|
||||
if ( sglob->one_shot_mode ) {
|
||||
/* give up if in one shot mode */
|
||||
rq->rq_unlock( rq );
|
||||
return 0;
|
||||
}
|
||||
/* wait on condition variable */
|
||||
ldap_pvt_thread_cond_wait( &rq->rq_more, &rq->rq_mutex );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user