Browse Source

Ticket 49316 - fix missing not condition in clock cleanu

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!)
Ludwig Krispenz 8 years ago
parent
commit
1b9504533e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/eventq.c

+ 1 - 1
ldap/servers/slapd/eventq.c

@@ -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;