From c3423ad80b67569a43a4f58c5fb24e51efcb3726 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 13 Jan 2018 19:19:29 -0800 Subject: [PATCH] ircd::net: Fix error. --- ircd/net.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/net.cc b/ircd/net.cc index 66013466e..cd6658823 100644 --- a/ircd/net.cc +++ b/ircd/net.cc @@ -213,7 +213,7 @@ ircd::net::discard_all(socket &socket, }; __builtin_prefetch(data(mb), 1, 0); // 1 = write, 0 = no cache - read_all(socket, mb); + remain -= read_all(socket, mb); } return len;