WIP: mncc.c: remove "gsm_mncc of wrong size" check

Change-Id: I5267bae965f069f2372fb14ce49b9b0d23e6fa8e
This commit is contained in:
Oliver Smith 2019-11-28 12:51:08 +01:00
parent 632156a4a8
commit 0e444f09cf
1 changed files with 0 additions and 13 deletions

View File

@ -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) {