From: Jaroslav Kysela Date: Fri, 20 Jan 2017 18:41:51 +0000 (+0100) Subject: satip client: fix for Telestar Twin UPnP discovery (missing 'BOOTID.UPNP.ORG' and... X-Git-Tag: v4.2.1~130 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e5f5a4278949afc96e26d6cd50cf968e0e92d7b6;p=thirdparty%2Ftvheadend.git satip client: fix for Telestar Twin UPnP discovery (missing 'BOOTID.UPNP.ORG' and 'CONFIGID.UPNP.ORG'), fixes #3998 --- diff --git a/src/input/mpegts/satip/satip.c b/src/input/mpegts/satip/satip.c index 6f4492317..3b56267b7 100644 --- a/src/input/mpegts/satip/satip.c +++ b/src/input/mpegts/satip/satip.c @@ -1116,7 +1116,7 @@ satip_discovery_service_received goto add_uuid; if (location == NULL || strncmp(location, "http://", 7)) goto add_uuid; - if (bootid == NULL || configid == NULL || server == NULL) + if (server == NULL) goto add_uuid; /* Forward information to next layer */ @@ -1131,9 +1131,9 @@ satip_discovery_service_received d->location = strdup(location); d->server = strdup(server); d->uuid = strdup(uuid); - d->bootid = strdup(bootid); - d->configid = strdup(configid); - d->deviceid = strdup(deviceid ? deviceid : ""); + d->bootid = strdup(bootid ?: ""); + d->configid = strdup(configid ?: ""); + d->deviceid = strdup(deviceid ?: ""); if (urlparse(d->location, &d->url)) { satip_discovery_destroy(d, 0); return;