From: Matthieu Poullet Date: Tue, 15 Mar 2022 09:40:44 +0000 (+0100) Subject: SAT>IP client: UPnP header field names are case insensitive X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1d7a928a8632d8c59e1fc6bb1a0a25dde9d5af;p=thirdparty%2Ftvheadend.git SAT>IP client: UPnP header field names are case insensitive - SAT>IP Protocol Specification 1.2.2: 3.3.2 Server Advertisements --- diff --git a/src/input/mpegts/satip/satip.c b/src/input/mpegts/satip/satip.c index 4d522e19c..58e91d30b 100644 --- a/src/input/mpegts/satip/satip.c +++ b/src/input/mpegts/satip/satip.c @@ -1175,19 +1175,19 @@ satip_discovery_service_received if (ptr == NULL) break; if (http_tokenize(ptr, argv, 2, ':') == 2) { - if (strcmp(argv[0], "ST") == 0) + if (strcasecmp(argv[0], "ST") == 0) st = argv[1]; - else if (strcmp(argv[0], "LOCATION") == 0) + else if (strcasecmp(argv[0], "LOCATION") == 0) location = argv[1]; - else if (strcmp(argv[0], "SERVER") == 0) + else if (strcasecmp(argv[0], "SERVER") == 0) server = argv[1]; - else if (strcmp(argv[0], "BOOTID.UPNP.ORG") == 0) + else if (strcasecmp(argv[0], "BOOTID.UPNP.ORG") == 0) bootid = argv[1]; - else if (strcmp(argv[0], "CONFIGID.UPNP.ORG") == 0) + else if (strcasecmp(argv[0], "CONFIGID.UPNP.ORG") == 0) configid = argv[1]; - else if (strcmp(argv[0], "DEVICEID.SES.COM") == 0) + else if (strcasecmp(argv[0], "DEVICEID.SES.COM") == 0) deviceid = argv[1]; - else if (strcmp(argv[0], "USN") == 0) { + else if (strcasecmp(argv[0], "USN") == 0) { n = http_tokenize(argv[1], argv, ARRAY_SIZE(argv), ':'); for (i = 0; i < n-1; i++) if (argv[i] && strcmp(argv[i], "uuid") == 0) {