Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http api: fix NULL dereference for /api/hardware/satip/discover, fixe…
…s #3900
  • Loading branch information
perexg committed Aug 6, 2016
1 parent 11d1ea7 commit b536cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api_input.c
Expand Up @@ -43,7 +43,7 @@ api_input_satip_discover
{
int err = 0;

if (strcmp(op, "all"))
if (op == NULL || strcmp(op, "all"))
return -EINVAL;

tvhinfo("satip", "Triggered new server discovery");
Expand Down

0 comments on commit b536cdb

Please sign in to comment.