Skip to content

Commit

Permalink
CID of 20 bytes is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
kazuho committed Mar 31, 2020
1 parent 7a49c30 commit 713707b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/quicly.c
Original file line number Diff line number Diff line change
Expand Up @@ -5128,7 +5128,7 @@ int quicly_decrypt_address_token(ptls_aead_context_t *aead, quicly_address_token
switch (plaintext->type) {
case QUICLY_ADDRESS_TOKEN_TYPE_RETRY:
ptls_decode_open_block(src, end, 1, {
if ((plaintext->retry.odcid.len = end - src) >= sizeof(plaintext->retry.odcid.cid)) {
if ((plaintext->retry.odcid.len = end - src) > sizeof(plaintext->retry.odcid.cid)) {
ret = PTLS_ALERT_DECODE_ERROR;
goto Exit;
}
Expand Down

0 comments on commit 713707b

Please sign in to comment.