Return line missing
Even if sanity check failes, data processing continues.
This commit is contained in:
parent
b304872b68
commit
647e6627fa
|
@ -438,6 +438,7 @@ def _checkAndShareGetpubkeyWithPeers(data):
|
||||||
return
|
return
|
||||||
if len(data) > 200:
|
if len(data) > 200:
|
||||||
logger.info('getpubkey is abnormally long. Sanity check failed. Ignoring object.')
|
logger.info('getpubkey is abnormally long. Sanity check failed. Ignoring object.')
|
||||||
|
return
|
||||||
embeddedTime, = unpack('>Q', data[8:16])
|
embeddedTime, = unpack('>Q', data[8:16])
|
||||||
readPosition = 20 # bypass the nonce, time, and object type
|
readPosition = 20 # bypass the nonce, time, and object type
|
||||||
requestedAddressVersionNumber, addressVersionLength = decodeVarint(
|
requestedAddressVersionNumber, addressVersionLength = decodeVarint(
|
||||||
|
|
Reference in New Issue
Block a user