fix parsing of input arguments in SendSetupMessage()

This commit is contained in:
Daniel Becker 2015-12-12 02:33:30 -08:00
parent f77d701489
commit db0ef3022e
1 changed files with 2 additions and 2 deletions

View File

@ -1999,8 +1999,8 @@ SendSetupMessage(struct upnphttp * h, const char * action, const char * ns)
const char * OutMessage = ""; /* base64 */
ParseNameValue(h->req_buf + h->req_contentoff, h->req_contentlen, &data);
ProtocolType = GetValueFromNameValueList(&data, "NewProtocolType"); /* string */
InMessage = GetValueFromNameValueList(&data, "NewInMessage"); /* base64 */
ProtocolType = GetValueFromNameValueList(&data, "ProtocolType"); /* string */
InMessage = GetValueFromNameValueList(&data, "InMessage"); /* base64 */
if(ProtocolType == NULL || InMessage == NULL)
{