Simplify ssl23_get_client_hello error handling.
authordoug <doug@openbsd.org>
Sun, 25 Oct 2015 15:49:04 +0000 (15:49 +0000)
committerdoug <doug@openbsd.org>
Sun, 25 Oct 2015 15:49:04 +0000 (15:49 +0000)
commit82eac07478a44d38084fc91a830936048cf09576
treeeb987d00050b41fe23303636dcdc8a04dc9e42ca
parentdecffd28fcd81c8f3dd185c8b375704bf3399e80
Simplify ssl23_get_client_hello error handling.

ssl23_get_client_hello sets type=1 on error and continues processing.
It should return an error immediately to simplify things.  This also
allows us to start removing the last of SSL_OP_NO_SSL*.

Added extra paranoia for s->version to make sure it is set properly.

ok jsing@
lib/libssl/s23_srvr.c
lib/libssl/src/ssl/s23_srvr.c