mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Fix a couple of Windows compilation issues
This commit is contained in:
parent
9b4d33c76c
commit
e5d4bc6d21
2 changed files with 16 additions and 1 deletions
|
@ -75,7 +75,14 @@ lsquic_iquic_parse_packet_in_long_begin (lsquic_packet_in_t *packet_in,
|
|||
header_type = bits2ht[ (first_byte >> 4) & 3 ];
|
||||
}
|
||||
else
|
||||
{
|
||||
header_type = HETY_VERNEG;
|
||||
#ifdef WIN32
|
||||
/* Useless initialization: */
|
||||
version = -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
packet_in->pi_header_type = header_type;
|
||||
|
||||
|
@ -125,6 +132,10 @@ lsquic_iquic_parse_packet_in_long_begin (lsquic_packet_in_t *packet_in,
|
|||
/* Need at least one version in the version array: add 4 */
|
||||
if (end - p < (ptrdiff_t) (dcil + scil + 4))
|
||||
return -1;
|
||||
#ifdef WIN32
|
||||
/* Useless initialization: */
|
||||
packet_len = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
memcpy(&packet_in->pi_conn_id, p, cid_len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue