Don't call deletePortMapping method for deletePortMappingRange
Length of strings needs to match before doing comparison, else we can stop early on a substring of the one were trying to match.
This commit is contained in:
parent
0490d16221
commit
20f1e070a1
|
@ -2014,6 +2014,11 @@ ExecuteSoapAction(struct upnphttp * h, const char * action, int n)
|
|||
while(soapMethods[i].methodName)
|
||||
{
|
||||
len = strlen(soapMethods[i].methodName);
|
||||
if(len != methodlen)
|
||||
{
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if(strncmp(p, soapMethods[i].methodName, len) == 0)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
|
|
Loading…
Reference in New Issue