Browse Source

fix a typo for #474

pull/481/head
Max Lv 9 years ago
parent
commit
1164dc28ca
1 changed files with 2 additions and 2 deletions
  1. 4
      src/udprelay.c

4
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;
}

Loading…
Cancel
Save