From: Matt Traudt Date: Tue, 3 Oct 2017 20:48:35 +0000 (-0400) Subject: sched: Add another SCHED_BUG() callsite X-Git-Tag: tor-0.3.2.4-alpha~20^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=52050bb2c6b498c05c7ec54947deff5f662db34e;p=thirdparty%2Ftor.git sched: Add another SCHED_BUG() callsite --- diff --git a/src/or/scheduler_kist.c b/src/or/scheduler_kist.c index ea6910c702..1bc92f249f 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. */