aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-01-06 16:41:43 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-19 09:23:31 +0100
commit10f981a4a1ec98befdc3184a6842369ae5b26d5b (patch)
tree46ca0d7cbbe81eac269f6911e027f695f93f664b /src
parent92efd03e87a97dd160446afa794bf94e0b9ad067 (diff)
stream: Use macros to access data and length
Diffstat (limited to 'src')
-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,