Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: satconf - check return value from linuxdvb_satconf_find_ele…
…(), fixes #2320
  • Loading branch information
perexg committed Oct 2, 2014
1 parent 3373ac6 commit ba8d90f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/input/mpegts/linuxdvb/linuxdvb_satconf.c
Expand Up @@ -583,7 +583,7 @@ linuxdvb_satconf_get_priority
( linuxdvb_satconf_t *ls, mpegts_mux_t *mm )
{
linuxdvb_satconf_ele_t *lse = linuxdvb_satconf_find_ele(ls, mm);
return lse->lse_priority;
return lse ? lse->lse_priority : 0;
}

void
Expand All @@ -601,6 +601,9 @@ linuxdvb_satconf_get_grace
( linuxdvb_satconf_t *ls, mpegts_mux_t *mm )
{
linuxdvb_satconf_ele_t *lse = linuxdvb_satconf_find_ele(ls, mm);
if (lse == NULL)
return 0;

int i, r = 10;
linuxdvb_diseqc_t *lds[] = {
(linuxdvb_diseqc_t*)lse->lse_en50494,
Expand Down

0 comments on commit ba8d90f

Please sign in to comment.