From 64554ad0cc7387ffdc3c86ad8e875ed00d49cfc4 Mon Sep 17 00:00:00 2001 From: Mihai Renea Date: Tue, 25 Oct 2022 18:55:50 +0200 Subject: [PATCH] SAT>IP client: UPnP header field names are case insensitive (#83) Co-authored-by: Mihai Renea --- msearch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/msearch.c b/msearch.c index b137a05..38a3941 100644 --- a/msearch.c +++ b/msearch.c @@ -76,13 +76,13 @@ void cSatipMsearch::Process(void) if (status) { // Check the location data // LOCATION: http://192.168.0.115:8888/octonet.xml - if (startswith(r, "LOCATION:")) { + if (strcasestr(r, "LOCATION:") == r) { location = compactspace(r + 9); debug1("%s location='%s'", __PRETTY_FUNCTION__, location); } // Check the source type // ST: urn:ses-com:device:SatIPServer:1 - else if (startswith(r, "ST:")) { + else if (strcasestr(r, "ST:") == r) { char *st = compactspace(r + 3); if (strstr(st, "urn:ses-com:device:SatIPServer:1")) valid = true;