Swap the check in ssl3_write_pending to avoid using
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Feb 2018 17:09:59 +0000 (18:09 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 9 Feb 2018 18:54:03 +0000 (19:54 +0100)
commit5a91d3888832d96400630e76a15121ead56aeeec
tree4385321dae70df65528c21ce543c1502e0614a8d
parent622ddb57798bb5c895b0fe40e3fd89fdb4cdbc65
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/5307)
ssl/record/rec_layer_s3.c