mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 12:16:44 +00:00
Guard against malformed requests
This commit is contained in:
parent
bef46b0d6b
commit
c203724132
1 changed files with 1 additions and 1 deletions
|
|
@ -209,7 +209,7 @@ func (self *bzzProtocol) handle() error {
|
|||
return self.protoError(ErrDecode, "->msg %v: %v", msg, err)
|
||||
}
|
||||
dpaLogger.Warnf("Request message: %#v", req)
|
||||
if req.Key == nil {
|
||||
if req.Key == nil || req.Timeout == nil {
|
||||
return self.protoError(ErrDecode, "protocol handler: req.Key == nil")
|
||||
}
|
||||
req.peer = peer{bzzProtocol: self}
|
||||
|
|
|
|||
Loading…
Reference in a new issue