Set alpn_selected_len to zero when freeing alpn_selected.
authorjsing <jsing@openbsd.org>
Mon, 19 Apr 2021 16:47:25 +0000 (16:47 +0000)
committerjsing <jsing@openbsd.org>
Mon, 19 Apr 2021 16:47:25 +0000 (16:47 +0000)
commite306641c959a8c4ac36b95e60d8ed076e397e61e
tree92c3c0591832e7f886c88d615b6c5c083641220e
parent4635eb8eda86f6948f699399fe4f5ac86465e8da
Set alpn_selected_len to zero when freeing alpn_selected.

This is not strictly necessary since we proceed to zero the entire struct,
however it keeps the code consistent and easily auditable.

ok tb@
lib/libssl/s3_lib.c