mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
add static_analysis note (potential bug, use of uninitialized value)
This commit is contained in:
parent
1c6031c677
commit
0b630f090c
|
@ -1233,6 +1233,7 @@ UTPSocket::write_outgoing_packet(size_t payload, uint flags,
|
|||
last_rcv_win = get_rcv_window();
|
||||
|
||||
PacketFormatV1 *p1 = (PacketFormatV1 *)pkt->data;
|
||||
// p1->ver_type; needs to be set!!
|
||||
p1->set_version(1);
|
||||
p1->set_type(flags);
|
||||
p1->ext = 0;
|
||||
|
|
Loading…
Reference in a new issue