Change in osmo-sip-connector[master]: mncc: Fix write len

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/.

pespin gerrit-no-reply at lists.osmocom.org
Tue Feb 2 15:47:30 UTC 2021


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


Change subject: mncc: Fix write len
......................................................................

mncc: Fix write len

Fixes bug introduced recently.

Fixes: 0f27b1bd397f5b54fdfabf447d6fca7f30ac2580
Change-Id: Ibbff004e2b76fbfe8962d14628c916afb19f30e6
---
M src/mncc.c
1 file changed, 1 insertion(+), 1 deletion(-)



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

diff --git a/src/mncc.c b/src/mncc.c
index 6d42fde..9d75950 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -160,7 +160,7 @@
 {
 	int rc;
 
-	rc = write(conn->fd.fd, &rtp, sizeof(rtp));
+	rc = write(conn->fd.fd, rtp, sizeof(*rtp));
 	LOGP(DMNCC, LOGL_DEBUG, "MNCC sent message type: %s\n", osmo_mncc_name(rtp->msg_type));
 	if (rc != sizeof(*rtp)) {
 		LOGP(DMNCC, LOGL_ERROR, "Failed to send message for call(%u): %d\n", rtp->callref, rc);

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-sip-connector/+/22635
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: Ibbff004e2b76fbfe8962d14628c916afb19f30e6
Gerrit-Change-Number: 22635
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210202/e7bda39e/attachment.htm>


More information about the gerrit-log mailing list