mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-03 13:33:29 +00:00
mgcp_find_section_end(): skip spaces at start of SDP
Change-Id: I015e0347a268b61c0ca45d40754942f87b461c09
This commit is contained in:
@@ -456,15 +456,15 @@ static char *mgcp_find_section_end(char *string)
|
|||||||
|
|
||||||
rc = strstr(string, "\n\n");
|
rc = strstr(string, "\n\n");
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc + 2;
|
||||||
|
|
||||||
rc = strstr(string, "\n\r\n\r");
|
rc = strstr(string, "\n\r\n\r");
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc + 4;
|
||||||
|
|
||||||
rc = strstr(string, "\r\n\r\n");
|
rc = strstr(string, "\r\n\r\n");
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc + 4;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user