remove useless check

see http://miniupnp.tuxfamily.org/forum/viewtopic.php?t=1834
This commit is contained in:
Thomas Bernard 2016-03-07 09:59:06 +01:00
parent 6532b02cab
commit dc9eb0df1c
1 changed files with 2 additions and 2 deletions

View File

@ -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';