From ed1194f411702989eddb67ec3bd1b87d017c7f47 Mon Sep 17 00:00:00 2001 From: Alex Iadicicco Date: Mon, 14 Oct 2013 15:58:33 -0700 Subject: [PATCH] os_trace: Check that the channel is non-NULL before continuing --- os_trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/os_trace.c b/os_trace.c index ae4b94f..efb720a 100644 --- a/os_trace.c +++ b/os_trace.c @@ -293,6 +293,7 @@ static bool trace_channel_exec(user_t *u, void *q) trace_query_channel_domain_t *domain = (trace_query_channel_domain_t *) q; return_val_if_fail(domain != NULL, false); + return_val_if_fail(domain->channel != NULL, false); return_val_if_fail(u != NULL, false); return (chanuser_find(domain->channel, u) != NULL);