mirror of
https://github.com/mfontanini/libtins
synced 2026-01-28 12:44:25 +01:00
Fix issues pointed out by scan.coverity
This commit is contained in:
@@ -59,7 +59,8 @@ ICMP::ICMP(Flags flag)
|
||||
type(flag);
|
||||
}
|
||||
|
||||
ICMP::ICMP(const uint8_t* buffer, uint32_t total_sz) {
|
||||
ICMP::ICMP(const uint8_t* buffer, uint32_t total_sz)
|
||||
: orig_timestamp_or_address_mask_(), recv_timestamp_(), trans_timestamp_() {
|
||||
InputMemoryStream stream(buffer, total_sz);
|
||||
stream.read(header_);
|
||||
if (type() == TIMESTAMP_REQUEST || type() == TIMESTAMP_REPLY) {
|
||||
|
||||
Reference in New Issue
Block a user