Merge pull request #13695 from AdamKorcz/fuzz1

server/etcdserver: fix oss-fuzz issue 42181
This commit is contained in:
Sahdev Zala 2022-02-14 15:36:41 -05:00 committed by GitHub
commit 830f00d105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}