Don't try to dereference 'pvt' if it's NULL. --- mesh/mesh-io-mgmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesh/mesh-io-mgmt.c b/mesh/mesh-io-mgmt.c index f33f64124bd1..0d32859794d5 100644 --- a/mesh/mesh-io-mgmt.c +++ b/mesh/mesh-io-mgmt.c @@ -138,9 +138,10 @@ static void filter_timeout(struct l_timeout *timeout, void *user_data) filter = l_queue_peek_tail(pvt->dup_filters); } + pvt->dup_timeout = NULL; + done: l_timeout_remove(timeout); - pvt->dup_timeout = NULL; } /* Ignore consecutive duplicate advertisements within timeout period */ -- 2.43.0