From 9956500d142349edae4d1f2692674382b04b1ac6 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 23 Apr 2019 13:22:22 +0000 Subject: net_helper: clear recv buffer on eof --- contrib/epee/include/net/net_helper.h | 1 + 1 file changed, 1 insertion(+) (limited to 'contrib') diff --git a/contrib/epee/include/net/net_helper.h b/contrib/epee/include/net/net_helper.h index 89cef8134..6387c4c34 100644 --- a/contrib/epee/include/net/net_helper.h +++ b/contrib/epee/include/net/net_helper.h @@ -448,6 +448,7 @@ namespace net_utils { MTRACE("Connection err_code eof."); //connection closed there, empty + buff.clear(); return true; } -- cgit v1.2.3