remove useless check
see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=1834
This commit is contained in:
parent
6532b02cab
commit
dc9eb0df1c
|
@ -616,14 +616,14 @@ UPNP_GetGenericPortMappingEntry(const char * controlURL,
|
|||
protocol[3] = '\0';
|
||||
}
|
||||
p = GetValueFromNameValueList(&pdata, "NewInternalClient");
|
||||
if(p && intClient)
|
||||
if(p)
|
||||
{
|
||||
strncpy(intClient, p, 16);
|
||||
intClient[15] = '\0';
|
||||
r = 0;
|
||||
}
|
||||
p = GetValueFromNameValueList(&pdata, "NewInternalPort");
|
||||
if(p && intPort)
|
||||
if(p)
|
||||
{
|
||||
strncpy(intPort, p, 6);
|
||||
intPort[5] = '\0';
|
||||
|
|
Loading…
Reference in New Issue