From c8acee22344ebbac2a96366765af4e7d7b28ea1c Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Thu, 13 Aug 2020 22:26:29 +0200 Subject: [PATCH] mgcp_e1: use return value of e1inp_line_update() The function e1inp_line_update() is called without assigning its return code to the rc variable. Change-Id: Ia72ea2dca210b038766151d547f66b7b7139a2c4 Fixes: CID#212160 --- src/libosmo-mgcp/mgcp_e1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libosmo-mgcp/mgcp_e1.c b/src/libosmo-mgcp/mgcp_e1.c index 8444b1187..b3db0b72c 100644 --- a/src/libosmo-mgcp/mgcp_e1.c +++ b/src/libosmo-mgcp/mgcp_e1.c @@ -402,7 +402,7 @@ int mgcp_e1_init(struct mgcp_trunk *trunk, uint8_t ts_nr) rc = e1inp_ts_config_raw(&e1_line->ts[ts_nr - 1], e1_line, e1_recv_cb); if (rc < 0) return -EINVAL; - e1inp_line_update(e1_line); + rc = e1inp_line_update(e1_line); if (rc < 0) return -EINVAL;