stream: Use macros to access data and length

This commit is contained in:
Daniel Willmann 2016-01-06 16:41:43 +01:00 committed by Harald Welte
parent 92efd03e87
commit 10f981a4a1
1 changed files with 1 additions and 1 deletions

View File

@ -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,