Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SAT>IP Client: fix possible NULL dereference
  • Loading branch information
perexg committed Apr 28, 2015
1 parent bd21995 commit aaaa7a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/input/mpegts/satip/satip_frontend.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit aaaa7a1

Please sign in to comment.