aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-30 16:12:21 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-30 19:41:58 +0200
commit788064dd12ab7a7075ad24771f377587ad93b68d (patch)
tree988b3a9c0f7f48b97709f9584ec5743879135c4d /src
parent1c621e70bee7575cdf31a08c42eeee3db2b7fdbf (diff)
Don't announce to non-peer CNodes
Diffstat (limited to 'src')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index df34f5a88d..af66eed070 100644
--- a/src/net.h
+++ b/src/net.h
@@ -256,7 +256,7 @@ public:
pfilter = NULL;
// Be shy and don't send version until we hear
- if (!fInbound)
+ if (hSocket != INVALID_SOCKET && !fInbound)
PushVersion();
}