]> 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:51:52 +0000 (09:51 -0500)
commit3aeed22c593ae036c2503ac07276768c82fe5782
tree5a14a94eda231b1485e4948b0b734528f1becfbe
parentc02fff5aecd4d002143a0e901f3dde3d14934a18
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)

(cherry picked from commit 54b6755702309487ea860e1cc3e60ccef4cf7878)
apps/s_socket.c