aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.c b/src/stream.c
index 0736ba7..fd02b74 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -641,7 +641,7 @@ int osmo_stream_srv_recv(struct osmo_stream_srv *conn, struct msgb *msg)
{
int ret;
- ret = recv(conn->ofd.fd, msg->data, msg->data_len, 0);
+ ret = recv(conn->ofd.fd, msgb_data(msg), msgb_tailroom(msg), 0);
if (ret < 0) {
if (errno == EPIPE || errno == ECONNRESET) {
LOGP(DLINP, LOGL_ERROR,