mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
mgw: Don't be case-sensitive when parsing X-Osmo-IGN param
Some implementations like our TTCN3 encoder set all param characters in caps. Related: SYS#5063 Change-Id: Ie4bc5e86551c55021ca6ca2fbc6fc56a26f5fb16
This commit is contained in:
@@ -707,7 +707,7 @@ static bool parse_x_osmo_ign(struct mgcp_endpoint *endp, char *line)
|
||||
{
|
||||
char *saveptr = NULL;
|
||||
|
||||
if (strncmp(line, MGCP_X_OSMO_IGN_HEADER, strlen(MGCP_X_OSMO_IGN_HEADER)))
|
||||
if (strncasecmp(line, MGCP_X_OSMO_IGN_HEADER, strlen(MGCP_X_OSMO_IGN_HEADER)))
|
||||
return false;
|
||||
line += strlen(MGCP_X_OSMO_IGN_HEADER);
|
||||
|
||||
|
Reference in New Issue
Block a user