mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server/etcdserver: fix oss-fuzz issue 42181
This commit is contained in:
parent
bdb13e2e12
commit
0df768d2b1
@ -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