Swap the check in ssl3_write_pending to avoid using
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Feb 2018 16:19:50 +0000 (17:19 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Feb 2018 18:52:31 +0000 (19:52 +0100)
commitebc20cfa746cb7dec91aff1e241063d785644fe3
treeb1b02ad1b14bd91b9dfe305790e876689e39ca90
parentc423ecaa7f6d0cc77c4f121c6de7d585439bca8f
Swap the check in ssl3_write_pending to avoid using
the possibly indeterminate pointer value in wpend_buf.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5305)
ssl/record/rec_layer_s3.c