From: Jaroslav Kysela Date: Tue, 28 Apr 2015 20:29:57 +0000 (+0200) Subject: SAT>IP Client: fix possible NULL dereference X-Git-Tag: v4.1~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aaaa7a1cfdea958cc37417682e9d593f33e620a1;p=thirdparty%2Ftvheadend.git SAT>IP Client: fix possible NULL dereference --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 7087b48b5..9d4d2d3c8 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -598,7 +598,8 @@ satip_frontend_close_pid if (pid < MPEGTS_FULLMUX_PID) { pthread_mutex_lock(&lfe->sf_dvr_lock); - change = mpegts_pid_del(&lfe->sf_req->sf_pids, pid, weight) >= 0; + if ((tr = lfe->sf_req) != NULL) + change = mpegts_pid_del(&tr->sf_pids, pid, weight) >= 0; pthread_mutex_unlock(&lfe->sf_dvr_lock); }