]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
sched: Add another SCHED_BUG() callsite
authorMatt Traudt <sirmatt@ksu.edu>
Tue, 3 Oct 2017 20:48:35 +0000 (16:48 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 2 Nov 2017 14:30:33 +0000 (10:30 -0400)
src/or/scheduler_kist.c

index ea6910c7023cffb9c2284a8d261836f539631111..1bc92f249fd09ad8f87bd0eac6b8c40af2e350bc 100644 (file)
@@ -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.
        */