Skip to content

Commit dad0a7c

Browse files
committed
refuse to build when a greasing TP is used
1 parent e6e8069 commit dad0a7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/quicly.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,6 +1656,7 @@ int quicly_encode_transport_parameter_list(ptls_buffer_t *buf, const quicly_tran
16561656

16571657
#define PUSH_TP(buf, id, block) \
16581658
do { \
1659+
PTLS_BUILD_ASSERT(((uint64_t)id - 27) % 31 != 0); \
16591660
ptls_buffer_push_quicint((buf), (id)); \
16601661
ptls_buffer_push_block((buf), -1, block); \
16611662
} while (0)

0 commit comments

Comments
 (0)