HomeFreeBSD

ping: Fix an uninitialized variable

Description

ping: Fix an uninitialized variable

The variable oicmp, which holds the original ("quoted packet") ICMP
packet in a structured way, did not have a copy of the original ICMP
packet obtained from the raw data.

The code was accidentally removed in 20b41303140e. Bring it back.

Reported by: Coverity Scan, cy
Reviewed by: cy
CID: 1506960 (UNINIT)
Fixes: 20b41303140eee4dfb896558fb83600c5f013d39
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39233

Details

Provenance
jlduran_gmail.comAuthored on Mar 24 2023, 4:53 AM
cyCommitted on Mar 24 2023, 4:58 AM
Reviewer
R11:1506960eb963: - Update to 2.5
Differential Revision
D39233: ping: Fix an uninitialized variable
Parents
rG2084f6a496ce: contrib/tzdata: import tzdata 2023b
Branches
Unknown
Tags
Unknown