mirror of
https://github.com/openwrt/openwrt.git
synced 2026-11-27 16:50:30 +04:00
OpenSSL returns zero when EVP_CipherUpdate() or EVP_CipherFinal_ex() fails. Returning that value from do_crypt() makes uencrypt exit successfully after an encryption or decryption error. Return EXIT_FAILURE from both error paths. Fixes: #26001 Signed-off-by: Dharmik Parmar <dharmikparmar2004@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/26140 Signed-off-by: Robert Marko <robimarko@gmail.com>