diff --git a/bash/sources/16_keystore b/bash/sources/16_keystore index 205a635..f8bb249 100644 --- a/bash/sources/16_keystore +++ b/bash/sources/16_keystore @@ -128,6 +128,11 @@ function _kstoredec { fi openssl enc -d -aes-256-cbc -pbkdf2 -k "$_AUTH_SECRET" -a -A + _code=$? + if [ $_code -ne 0 ]; then + _AUTH_SECRET= + return $_code + fi } function _kstoresecret-auto {