aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
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/net.h
parent1c621e70bee7575cdf31a08c42eeee3db2b7fdbf (diff)
downloadbitcoin-788064dd12ab7a7075ad24771f377587ad93b68d.tar.xz
Don't announce to non-peer CNodes
Diffstat (limited to 'src/net.h')
-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();
}