os_trace: Check that the channel is non-NULL before continuing

This commit is contained in:
Alex Iadicicco 2013-10-14 15:58:33 -07:00
parent ca5d947cb0
commit ed1194f411
1 changed files with 1 additions and 0 deletions

View File

@ -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);