mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #13695 from AdamKorcz/fuzz1
server/etcdserver: fix oss-fuzz issue 42181
This commit is contained in:
commit
830f00d105
@ -1898,6 +1898,9 @@ func (s *EtcdServer) applyEntryNormal(e *raftpb.Entry) {
|
||||
|
||||
id := raftReq.ID
|
||||
if id == 0 {
|
||||
if raftReq.Header == nil {
|
||||
s.lg.Panic("applyEntryNormal, could not find a header")
|
||||
}
|
||||
id = raftReq.Header.ID
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user