From 1164dc28cae8ea9d1f024c568b88afedb95825db Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 9 Dec 2015 17:53:37 +0800 Subject: [PATCH] fix a typo for #474 --- src/udprelay.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udprelay.c b/src/udprelay.c index 88d5423c..8073e557 100644 --- a/src/udprelay.c +++ b/src/udprelay.c @@ -818,8 +818,8 @@ static void server_recv_cb(EV_P_ ev_io *w, int revents) msg.msg_iov = iov; msg.msg_iovlen = 1; - ssize_t buf_len = recvmsg(server_ctx->fd, &msg, 0); - if (buf_len == -1) { + buf->len = recvmsg(server_ctx->fd, &msg, 0); + if (buf->len == -1) { ERROR("[udp] server_recvmsg"); goto CLEAN_UP; }