neels has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-mgw/+/32161 )


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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-mgw refs/changes/61/32161/1

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;
 }

--
To view, visit https://gerrit.osmocom.org/c/osmo-mgw/+/32161
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Change-Id: I015e0347a268b61c0ca45d40754942f87b461c09
Gerrit-Change-Number: 32161
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofm...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to