miniupnpd/upnpsoap.c: improve ExecuteSoapAction()

improve commit 20f1e070a1
This commit is contained in:
Thomas Bernard 2014-05-15 10:35:27 +02:00
parent 8fa9446d65
commit 4dbbf34032
1 changed files with 1 additions and 6 deletions

View File

@ -2025,12 +2025,7 @@ ExecuteSoapAction(struct upnphttp * h, const char * action, int n)
while(soapMethods[i].methodName) while(soapMethods[i].methodName)
{ {
len = strlen(soapMethods[i].methodName); len = strlen(soapMethods[i].methodName);
if(len != methodlen) if((len == methodlen) && memcmp(p, soapMethods[i].methodName, len) == 0)
{
i++;
continue;
}
if(strncmp(p, soapMethods[i].methodName, len) == 0)
{ {
#ifdef DEBUG #ifdef DEBUG
syslog(LOG_DEBUG, "Remote Call of SoapMethod '%s'\n", syslog(LOG_DEBUG, "Remote Call of SoapMethod '%s'\n",