summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2021-01-14 03:36:18 +0100
committerAlexander Couzens <lynxis@fe80.eu>2021-01-14 21:27:55 +0100
commit1bd26902d259e8688bfe2eef4236986153c6208f (patch)
treed4482ed5b7306493e02a9b08a80e896f6c5bf972
parent0f27b1bd397f5b54fdfabf447d6fca7f30ac2580 (diff)
mncc: mncc_create_remote_leg: use mncc_write instead of write direct to the fdHEADmaster
-rw-r--r--src/mncc.c3
1 files changed, 1 insertions, 2 deletions
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 @@ int mncc_create_remote_leg(struct mncc_connection *conn, struct call *call)
* - 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;
}