From c625df2f7ef27be11c53e0596cdf2aa9d373eb63 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Tue, 12 Dec 2017 15:37:15 +0100 Subject: [PATCH] capmt: fix another crash introduced with the ok timer code, fixes #4783 --- src/descrambler/capmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/descrambler/capmt.c b/src/descrambler/capmt.c index e3eac35b7..6f41263a9 100644 --- a/src/descrambler/capmt.c +++ b/src/descrambler/capmt.c @@ -2482,7 +2482,8 @@ capmt_service_start(caclient_t *cac, service_t *s) tvh_cond_signal(&capmt->capmt_cond, 0); fin: - mtimer_arm_rel(&ct->ct_ok_timer, capmt_ok_timer_cb, ct, sec2mono(3)/2); + if (ct) + mtimer_arm_rel(&ct->ct_ok_timer, capmt_ok_timer_cb, ct, sec2mono(3)/2); pthread_mutex_unlock(&t->s_stream_mutex); pthread_mutex_unlock(&capmt->capmt_mutex); -- 2.47.3