Only reset the ctx when a cipher is given
authorKurt Roeckx <kurt@roeckx.be>
Sun, 29 Oct 2017 14:13:43 +0000 (15:13 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Mon, 30 Oct 2017 21:50:17 +0000 (22:50 +0100)
commitffd23209933ea0ad5543f15ca6303d63d8dac826
tree372c5ccd5269a28486c3c7702e8dfb771c28238a
parent79204b9cd7bbaaf524de9bc83d96e2d320d7538c
Only reset the ctx when a cipher is given

This restores the 1.0.2 behaviour

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Benjamin Kaduk <bkaduk@akamai.com>
GH: #4613
crypto/evp/evp_enc.c