The saTmrDispatch routine can get into a tight loop if a callback is
undefined (NULL). If callback is NULL, we should simply break out of
the switch statement rather than continue.

Same problem that Christine found in lck service.

Ryan
Index: tmr.c
===================================================================
--- tmr.c       (revision 2097)
+++ tmr.c       (working copy)
@@ -226,7 +226,7 @@
                switch (dispatch_data->id) {
                case MESSAGE_RES_TMR_TIMEREXPIREDCALLBACK:
                        if (callbacks.saTmrTimerExpiredCallback == NULL) {
-                               continue;
+                               break;
                        }
 
                        res_lib_tmr_timerexpiredcallback =
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to