Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/azatoth/minidlna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Maggard <jmaggard@users.sourceforce.net>2012-02-06 00:21:48 +0400
committerJustin Maggard <jmaggard@users.sourceforce.net>2012-02-06 00:21:48 +0400
commit6223fb04a7a05097cf5198c367a0a58bd4e2b5a7 (patch)
tree98b8b282174d06342470758644d8548de35cee33
parente135ca88a7f64a3765e6489ac6bd10f1d78d92f8 (diff)
* Handle an empty DeviceID from Zyxel media player SOAP request.
-rw-r--r--upnpsoap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/upnpsoap.c b/upnpsoap.c
index a297f31..ae90d2d 100644
--- a/upnpsoap.c
+++ b/upnpsoap.c
@@ -134,6 +134,8 @@ IsAuthorizedValidated(struct upnphttp * h, const char * action)
ParseNameValue(h->req_buf + h->req_contentoff, h->req_contentlen, &data);
id = GetValueFromNameValueList(&data, "DeviceID");
+ if (!id)
+ id = strstr(h->req_buf + h->req_contentoff, "<DeviceID>");
if(id)
{
bodylen = snprintf(body, sizeof(body), resp,