Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
htsp server: fix NULL dereference in addDvrEntry
  • Loading branch information
perexg committed Dec 4, 2014
1 parent c65dfa1 commit 5339e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htsp_server.c
Expand Up @@ -1347,7 +1347,7 @@ htsp_method_addDvrEntry(htsp_connection_t *htsp, htsmsg_t *in)
ch = channel_find_by_id(u32);
if(!htsmsg_get_u32(in, "eventId", &eventid)) {
e = epg_broadcast_find_by_id(eventid);
ch = e->channel;
ch = e ? e->channel : ch;
}
if(htsmsg_get_u32(in, "priority", &priority))
priority = DVR_PRIO_NORMAL;
Expand Down

0 comments on commit 5339e1a

Please sign in to comment.