Don't call setsockopt with an invalid fd
authorMatt Caswell <matt@openssl.org>
Tue, 29 May 2018 15:09:02 +0000 (16:09 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 31 May 2018 09:39:13 +0000 (10:39 +0100)
commit5f49783c12e9e6100075e50fe727ee2d5cc30445
tree7e4c0c2ac6eb562bb91479e32a7a87946693e583
parentbdd5f12ea6b76fb133b152a3ca38a3c045be4de3
Don't call setsockopt with an invalid fd

This is probably a "should not happen" scenario, but better check anyway.
Found by Coverity.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6373)
apps/s_time.c