neels has submitted this change. ( https://gerrit.osmocom.org/c/osmo-mgw/+/32161 )
(
1 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: mgcp_find_section_end(): skip spaces at start of SDP ......................................................................
mgcp_find_section_end(): skip spaces at start of SDP
Change-Id: I015e0347a268b61c0ca45d40754942f87b461c09 --- M src/libosmo-mgcp-client/mgcp_client.c 1 file changed, 12 insertions(+), 3 deletions(-)
Approvals: pespin: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified
diff --git a/src/libosmo-mgcp-client/mgcp_client.c b/src/libosmo-mgcp-client/mgcp_client.c index 4dd278f..670910b 100644 --- a/src/libosmo-mgcp-client/mgcp_client.c +++ b/src/libosmo-mgcp-client/mgcp_client.c @@ -456,15 +456,15 @@
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; }