aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-01-06 16:41:43 +0100
committerDaniel Willmann <daniel@totalueberwachung.de>2016-01-06 16:41:43 +0100
commit03f4ebe741c7abaa4ed86fd2019b1d17dadad607 (patch)
treef968bf610e2f7940886d832f8649971389b5b955
parent4d702db3f7a16c7aad20f799420c9a175194f722 (diff)
stream: Use macros to access data and length
-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,