summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2019-11-28 12:51:08 +0100
committerOliver Smith <osmith@sysmocom.de>2019-11-28 12:51:08 +0100
commit0e444f09cfa6ae2546d41d0b4dbf7982f73845f6 (patch)
tree603d9b8f07bc1c1a563db2198712b267698e1377
parent632156a4a8146f5644ddbebf042e31bd0562b32f (diff)
WIP: mncc.c: remove "gsm_mncc of wrong size" checkosmith/fix-sipcon
-rw-r--r--src/mncc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/mncc.c b/src/mncc.c
index f2e2579..79bcaad 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -472,12 +472,6 @@ static void check_setup(struct mncc_connection *conn, const char *buf, int rc)
struct call *call;
struct mncc_call_leg *leg;
- if (rc != sizeof(*data)) {
- LOGP(DMNCC, LOGL_ERROR, "gsm_mncc of wrong size %d vs. %zu\n",
- rc, sizeof(*data));
- return close_connection(conn);
- }
-
data = (const struct gsm_mncc *) buf;
called = &data->called;
@@ -548,13 +542,6 @@ static struct mncc_call_leg *find_leg(struct mncc_connection *conn,
{
struct mncc_call_leg *leg;
- if (rc != sizeof(**mncc)) {
- LOGP(DMNCC, LOGL_ERROR, "gsm_mncc of wrong size %d vs. %zu\n",
- rc, sizeof(**mncc));
- close_connection(conn);
- return NULL;
- }
-
*mncc = (const struct gsm_mncc *) buf;
leg = mncc_find_leg((*mncc)->callref);
if (!leg) {