mgcp_find_section_end(): skip spaces at start of SDP

Change-Id: I015e0347a268b61c0ca45d40754942f87b461c09
This commit is contained in:
Neels Hofmeyr
2023-03-30 16:51:40 +02:00
parent cca1d180f5
commit ce356eec1f

View File

@@ -456,15 +456,15 @@ static char *mgcp_find_section_end(char *string)
rc = strstr(string, "\n\n");
if (rc)
return rc;
return rc + 2;
rc = strstr(string, "\n\r\n\r");
if (rc)
return rc;
return rc + 4;
rc = strstr(string, "\r\n\r\n");
if (rc)
return rc;
return rc + 4;
return NULL;
}