mirror of
https://github.com/status-im/miniupnp.git
synced 2025-02-20 17:58:19 +00:00
GetOutboundPinholeTimeout: check args
This commit is contained in:
parent
bec6ccec63
commit
13585f15c7
@ -1850,6 +1850,13 @@ GetOutboundPinholeTimeout(struct upnphttp * h, const char * action, const char *
|
||||
rem_port = GetValueFromNameValueList(&data, "RemotePort");
|
||||
protocol = GetValueFromNameValueList(&data, "Protocol");
|
||||
|
||||
if (!int_port || !ext_port || !protocol)
|
||||
{
|
||||
ClearNameValueList(&data);
|
||||
SoapError(h, 402, "Invalid Args");
|
||||
return;
|
||||
}
|
||||
|
||||
rport = (unsigned short)atoi(rem_port);
|
||||
iport = (unsigned short)atoi(int_port);
|
||||
/*proto = atoi(protocol);*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user