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:
Arran Cudbard-Bell 2014-05-13 21:29:19 +01:00
parent 0490d16221
commit 20f1e070a1
1 changed files with 5 additions and 0 deletions

View File

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