Skip to content

Commit 0a952aa

Browse files
committed
DO NOT MERGE
1 parent 58b153b commit 0a952aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/quic_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ static int qc_do_build_pkt(unsigned char *pos, const unsigned char *end,
19951995
* so that the sample will be extracted as the AEAD tag.
19961996
*/
19971997
if (*pn_len + len < QUIC_PACKET_PN_MAXLEN + QUIC_HP_SAMPLE_LEN) {
1998-
padding_len = QUIC_PACKET_PN_MAXLEN + QUIC_HP_SAMPLE_LEN - (*pn_len + len);
1998+
padding_len = QUIC_PACKET_PN_MAXLEN + QUIC_HP_SAMPLE_LEN - *pn_len;
19991999
len += padding_len;
20002000
}
20012001

0 commit comments

Comments
 (0)