From 6064099fb06587c33363490ac3ea332a11ba9a55 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sun, 5 Feb 2012 20:21:48 +0000 Subject: [PATCH] * Handle an empty DeviceID from Zyxel media player SOAP request. --- upnpsoap.c | 2 ++ 1 file changed, 2 insertions(+) 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, ""); if(id) { bodylen = snprintf(body, sizeof(body), resp,