Merge branch 'bzz' of github.com:ethersphere/go-ethereum into bzz

This commit is contained in:
zelig 2015-02-12 17:52:29 +01:00
commit 64633e0b0c

View file

@ -209,8 +209,8 @@ func (self *bzzProtocol) handle() error {
return self.protoError(ErrDecode, "->msg %v: %v", msg, err)
}
dpaLogger.Warnf("Request message: %#v", req)
if req.Key == nil {
return self.protoError(ErrDecode, "protocol handler: req.Key == nil")
if req.Key == nil || req.Timeout == nil {
return self.protoError(ErrDecode, "protocol handler: req.Key == nil || req.Timeout == nil")
}
req.peer = peer{bzzProtocol: self}
self.netStore.addRetrieveRequest(&req)