v3rpc: treat nil txn request op as error

Fixes #7889
This commit is contained in:
Anthony Romano 2017-05-31 12:39:52 -07:00
parent 1467b456ae
commit d8210da505

View File

@ -253,8 +253,8 @@ func checkRequestOp(u *pb.RequestOp) error {
return checkDeleteRequest(uv.RequestDeleteRange)
}
default:
// empty op
return nil
// empty op / nil entry
return rpctypes.ErrGRPCKeyNotFound
}
return nil
}