Skip to content

Commit

Permalink
Ticket 49316 - fix missing not condition in clock cleanu
Browse files Browse the repository at this point in the history
Bug Description:  During the clock cleanup I removed a
macro. This broke a not condition which caused 100% cpu
load.

Fix Description:  Add braces around the condition.

https://pagure.io/389-ds-base/issue/49316

Author: lkrispen

Review by: wibrown (Thanks Ludwig!)
  • Loading branch information
elkris authored and Firstyear committed Jul 17, 2017
1 parent b95f5f2 commit 1b95045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldap/servers/slapd/eventq.c
Expand Up @@ -315,7 +315,7 @@ eq_loop(void *arg __attribute__((unused)))
PRIntervalTime timeout;
int until;
PR_Lock(eq->eq_lock);
while (!(NULL != eq->eq_queue) && (eq->eq_queue->ec_when <= curtime)) {
while (!((NULL != eq->eq_queue) && (eq->eq_queue->ec_when <= curtime))) {
if (!eq_running) {
PR_Unlock(eq->eq_lock);
goto bye;
Expand Down

0 comments on commit 1b95045

Please sign in to comment.