mgcp-client: Remove impossible code path

read(4096 - 128) cannot return > 4096 - 128.

Change-Id: I352c3b28c8de6482277cb84cd0f51893494dc929
changes/82/28482/1
Pau Espin 3 months ago
parent cfef36837e
commit 147184eb06
  1. 4
      src/libosmo-mgcp-client/mgcp_client.c

@ -726,10 +726,6 @@ static int mgcp_do_read(struct osmo_fd *fd)
msgb_free(msg);
return -1;
} else if (ret > 4096 - 128) {
LOGPMGW(mgcp, LOGL_ERROR, "Too much data: %s: %d\n", osmo_sock_get_name2(fd->fd), ret);
msgb_free(msg);
return -1;
}
msg->l2h = msgb_put(msg, ret);

Loading…
Cancel
Save