summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6_pcb.c
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-11-28 13:19:05 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-11-28 13:19:05 +0000
commitd7785c2ebe5dcb50b51336f4888dba90a71b0f01 (patch)
treee8608a11389a455b10433f216df6449bd3b5b549 /sys/netinet6/in6_pcb.c
parent58678473557799cc2184240597962e932514a592 (diff)
Switch to legacy method late in tls13_use_legacy_stack()
If memory allocation of s->init_buf fails in ssl3_setup_init_buffer() during downgrade to the legacy stack, the legacy state machine would resume with an incorrectly set up SSL, resulting in a NULL dereference. The fix is to switch to the legacy method only after the SSL is fully set up. There is a second part to this fix, which will be committed once we manage to agree on the color of the bikeshed. Detailed analysis and patch from Masaru Masuda, many thanks! https://github.com/libressl/openbsd/issues/146 ok jsing
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
0 files changed, 0 insertions, 0 deletions