Skip to content

CID 1435546: Error handling issues (CHECKED_RETURN)

Got a new coverity report today:

*** CID 1435546:  Error handling issues  (CHECKED_RETURN)
/src/common/compat_libevent.c: 286 in periodic_timer_disable()
280      * If the timer is already disabled, this function does nothing.
281      */
282     void
283     periodic_timer_disable(periodic_timer_t *timer)
284     {
285       tor_assert(timer);
>>>     CID 1435546:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "event_del" without checking return value (as is done elsewhere 4 out of 5 times).
286       event_del(timer->ev);
287     }
288     
289     /** Stop and free a periodic timer */
290     void
291     periodic_timer_free_(periodic_timer_t *timer)

Seems to be related to legacy/trac#26063 (moved).

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information