|
@@ -387,7 +387,9 @@ std::deque<int32_t> DefaultBtContext::computeFastSet(const std::string& ipaddr,
|
|
|
{
|
|
|
std::deque<int32_t> fastSet;
|
|
|
char compact[6];
|
|
|
- PeerMessageUtil::createcompact(compact, ipaddr, 0);
|
|
|
+ if(!PeerMessageUtil::createcompact(compact, ipaddr, 0)) {
|
|
|
+ return fastSet;
|
|
|
+ }
|
|
|
unsigned char tx[24];
|
|
|
memcpy(tx, compact, 4);
|
|
|
if((tx[0] & 0x80) == 0 || (tx[0] & 0x40) == 0) {
|