mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-18 18:31:15 +00:00
miniupnpd: SetDefaultConnectionService() checks its argumnents in UPNP_STRICT mode
This commit is contained in:
parent
ee0815ac85
commit
988594dfe6
@ -4,6 +4,7 @@ $Id: Changelog.txt,v 1.309 2012/09/27 16:01:10 nanard Exp $
|
|||||||
Fixes with DISABLE_CONFIG_FILE
|
Fixes with DISABLE_CONFIG_FILE
|
||||||
and UPNP_STRICT
|
and UPNP_STRICT
|
||||||
UPC must be a 12 decimal digit code
|
UPC must be a 12 decimal digit code
|
||||||
|
SetDefaultConnectionService() checks its argumnents in UPNP_STRICT mode
|
||||||
|
|
||||||
2012/09/20:
|
2012/09/20:
|
||||||
Cleaning code in ipfw (Jardel Weyrich)
|
Cleaning code in ipfw (Jardel Weyrich)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* $Id: upnpsoap.c,v 1.110 2012/05/24 16:51:09 nanard Exp $ */
|
/* $Id: upnpsoap.c,v 1.111 2012/09/27 11:54:57 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2012 Thomas Bernard
|
* (c) 2006-2012 Thomas Bernard
|
||||||
@ -987,9 +987,14 @@ SetDefaultConnectionService(struct upnphttp * h, const char * action)
|
|||||||
p = GetValueFromNameValueList(&data, "NewDefaultConnectionService");
|
p = GetValueFromNameValueList(&data, "NewDefaultConnectionService");
|
||||||
if(p) {
|
if(p) {
|
||||||
syslog(LOG_INFO, "%s(%s) : Ignored", action, p);
|
syslog(LOG_INFO, "%s(%s) : Ignored", action, p);
|
||||||
|
BuildSendAndCloseSoapResp(h, resp, sizeof(resp)-1);
|
||||||
|
#ifdef UPNP_STRICT
|
||||||
|
} else {
|
||||||
|
/* missing argument */
|
||||||
|
SoapError(h, 402, "Invalid Args");
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
ClearNameValueList(&data);
|
ClearNameValueList(&data);
|
||||||
BuildSendAndCloseSoapResp(h, resp, sizeof(resp)-1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user