[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] sched: Add another SCHED_BUG() callsite
commit 52050bb2c6b498c05c7ec54947deff5f662db34e
Author: Matt Traudt <sirmatt@xxxxxxx>
Date: Tue Oct 3 16:48:35 2017 -0400
sched: Add another SCHED_BUG() callsite
---
src/or/scheduler_kist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c
index ea6910c70..1bc92f249 100644
--- a/src/or/scheduler_kist.c
+++ b/src/or/scheduler_kist.c
@@ -572,7 +572,7 @@ kist_scheduler_run(void)
/* get best channel */
chan = smartlist_pqueue_pop(cp, scheduler_compare_channels,
offsetof(channel_t, sched_heap_idx));
- IF_BUG_ONCE(!chan) {
+ if (SCHED_BUG(!chan, NULL)) {
/* Some-freaking-how a NULL got into the channels_pending. That should
* never happen, but it should be harmless to ignore it and keep looping.
*/
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits