aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 13:22:22 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-23 13:23:17 +0000
commit9956500d142349edae4d1f2692674382b04b1ac6 (patch)
tree45edc5a8b0a45ac88c362e7428c0c8921a8cf582 /contrib/epee
parentMerge pull request #5466 (diff)
downloadmonero-9956500d142349edae4d1f2692674382b04b1ac6.tar.xz
net_helper: clear recv buffer on eof
Diffstat (limited to 'contrib/epee')
-rw-r--r--contrib/epee/include/net/net_helper.h1
1 files changed, 1 insertions, 0 deletions
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;
}