]> git.ipfire.org Git - thirdparty/openssl.git/commit
Set protocol in init_client()
authorTodd Short <todd.short@me.com>
Tue, 8 Mar 2022 14:36:43 +0000 (09:36 -0500)
committerTodd Short <todd.short@me.com>
Thu, 10 Mar 2022 14:24:48 +0000 (09:24 -0500)
commit54b6755702309487ea860e1cc3e60ccef4cf7878
tree6e479d5557091d2e709ba3afc1d503b82d2cc025
parent175355923046921a689b500f7a72455f7095708f
Set protocol in init_client()

If TCP is being used, protocol = 0 is passed to init_client(), then
protocol == IPPROTO_TCP fails when attempting to set BIO_SOCK_NODELAY.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17838)
apps/lib/s_socket.c