Use the protocol we know rather than BIO_ADDRINFO_protocol(res)
authorRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 19:54:48 +0000 (20:54 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 10 Feb 2016 19:58:18 +0000 (20:58 +0100)
commit968d1a23726dbca82ac694a508efe8ea37d0a95e
tree2058965bdce5fc2bf1210c133ff246bcbda872ba
parent07aa1e0459da67de3f0a866f2c7bc48193698597
Use the protocol we know rather than BIO_ADDRINFO_protocol(res)

Because some platforms won't will in any value in ai_protocol, there's
no point using it if we already know what it should be.

Reviewed-by: Rich Salz <rsalz@openssl.org>
apps/s_socket.c