* Handle an empty DeviceID from Zyxel media player SOAP request.

This commit is contained in:
Justin Maggard 2012-02-05 20:21:48 +00:00
parent ef70eada7d
commit 6064099fb0

View File

@ -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,