Change in osmo-sip-connector[master]: mncc: mncc_create_remote_leg: use mncc_write instead of write direct ...

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Thu Jan 14 20:27:25 UTC 2021


lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/22204 )


Change subject: mncc: mncc_create_remote_leg: use mncc_write instead of write direct to the fd
......................................................................

mncc: mncc_create_remote_leg: use mncc_write instead of write direct to the fd

Change-Id: I870c16d7ee5e5424304f3c1c9fb78af418ae2577
---
M src/mncc.c
1 file changed, 1 insertion(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sip-connector refs/changes/04/22204/1

diff --git a/src/mncc.c b/src/mncc.c
index 83cfe3b..abfa01b 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -922,11 +922,10 @@
 	 *  - Screening, redirect?
 	 *  - Synth. the bearer caps based on codecs?
 	 */
-	rc = write(conn->fd.fd, &mncc, sizeof(mncc));
+	rc = mncc_write(conn, &mncc);
 	if (rc != sizeof(mncc)) {
 		LOGP(DMNCC, LOGL_ERROR, "Failed to send message leg(%u)\n",
 			leg->callref);
-		close_connection(conn);
 		talloc_free(leg);
 		return -1;
 	}

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

Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Change-Id: I870c16d7ee5e5424304f3c1c9fb78af418ae2577
Gerrit-Change-Number: 22204
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210114/ab405f95/attachment.htm>


More information about the gerrit-log mailing list