diff --git a/src/rtty.c b/src/rtty.c index 3bd59ab..ed9014d 100644 --- a/src/rtty.c +++ b/src/rtty.c @@ -415,10 +415,8 @@ static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents) } ret = buffer_put_fd_ex(&rtty->rb, w->fd, 4096, &eof, rtty_ssl_read, rtty); - if (ret < 0) { - log_err("socket read error: %s\n", strerror(errno)); + if (ret < 0) goto err; - } #endif } else { ret = buffer_put_fd(&rtty->rb, w->fd, 4096, &eof);