aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-04-24 22:40:12 +0200
committerRiccardo Spagni <ric@spagni.net>2019-04-24 22:40:12 +0200
commit5d09e39174981121b21110aba307a2548101cd8e (patch)
tree6c2696a1cb6ce31cc53d8ec076adb278668f3844 /contrib/epee/include
parentMerge pull request #5480 (diff)
parentnet_helper: clear recv buffer on eof (diff)
downloadmonero-5d09e39174981121b21110aba307a2548101cd8e.tar.xz
Merge pull request #5482
9956500d net_helper: clear recv buffer on eof (moneromooo-monero)
Diffstat (limited to 'contrib/epee/include')
-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;
}