mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-sip-connector.git
synced 2025-10-23 08:22:20 +00:00
mncc: Fix write len
Fixes bug introduced recently.
Closes: OS#4957
Fixes: 0f27b1bd39
Change-Id: Ibbff004e2b76fbfe8962d14628c916afb19f30e6
This commit is contained in:
committed by
laforge
parent
d2a85888aa
commit
9484ad9a87
@@ -160,7 +160,7 @@ static int mncc_rtp_write(struct mncc_connection *conn, struct gsm_mncc_rtp *rtp
|
||||
{
|
||||
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);
|
||||
|
Reference in New Issue
Block a user