fix checking of "~Man:" header"

bug introduced in 3571a41d1b
This commit is contained in:
Thomas Bernard 2019-10-06 00:17:52 +02:00
parent b747e222a8
commit a87011f933
1 changed files with 1 additions and 1 deletions

View File

@ -1072,7 +1072,7 @@ ProcessSSDPData(int s, const char *bufr, int n,
#endif /* defined(UPNP_STRICT) || defined(DELAY_MSEARCH_RESPONSE) */
#if defined(UPNP_STRICT)
/* Fix UDA-1.2.10 Man header empty or invalid */
else if((i < n - 4) && (strncasecmp(bufr+i, "man:", 3) == 0))
else if((i < n - 4) && (strncasecmp(bufr+i, "man:", 4) == 0))
{
const char * man;
int man_len;