diff options
-rw-r--r-- | openbsc/src/bsc_msc_ip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bsc_msc_ip.c b/openbsc/src/bsc_msc_ip.c index 0275df734..c552b7f6c 100644 --- a/openbsc/src/bsc_msc_ip.c +++ b/openbsc/src/bsc_msc_ip.c @@ -601,7 +601,7 @@ static int mgcp_do_read(struct bsc_fd *fd) return -1; } - ret = read(fd->fd, mgcp->data, mgcp->len); + ret = read(fd->fd, mgcp->data, mgcp->data_len); if (ret <= 0) { LOGP(DMGCP, LOGL_ERROR, "Failed to read: %d/%s\n", errno, strerror(errno)); msgb_free(mgcp); |