[tor-commits] [tor/master] Properly ignore retval of event_del().

nickm at torproject.org nickm at torproject.org
Fri May 11 12:20:58 UTC 2018


commit efe8f17a4dc48d43cbc0a523c9dc0560771ff2c5
Author: George Kadianakis <desnacked at riseup.net>
Date:   Fri May 11 15:17:52 2018 +0300

    Properly ignore retval of event_del().
    
    Fixes #26078: CID 1435546.
---
 src/common/compat_libevent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 56ee682fd..e60eb148d 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -283,7 +283,7 @@ void
 periodic_timer_disable(periodic_timer_t *timer)
 {
   tor_assert(timer);
-  event_del(timer->ev);
+  (void) event_del(timer->ev);
 }
 
 /** Stop and free a periodic timer */





More information about the tor-commits mailing list