os_trace: Check that the channel is non-NULL before continuing
This commit is contained in:
parent
ca5d947cb0
commit
ed1194f411
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue