mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 11:41:35 +01:00
Removed access to potentially invalid positions on vector.
This commit is contained in:
@@ -77,7 +77,7 @@ PDU *IPv4Stream::allocate_pdu() const {
|
||||
}
|
||||
return Internals::pdu_from_flag(
|
||||
static_cast<Constants::IP::e>(transport_proto),
|
||||
&buffer[0],
|
||||
buffer.empty() ? 0 : &buffer[0],
|
||||
buffer.size()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user