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

Change-Id: I5267bae965f069f2372fb14ce49b9b0d23e6fa8e
osmith/fix-sipcon
Oliver Smith 3 years ago
parent 632156a4a8
commit 0e444f09cf
  1. 13
      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) {

Loading…
Cancel
Save