summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index ec3eb0c..e60657a 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -715,7 +715,7 @@ function keyringer_check_expiration {
done
# All subkeys are expired
- if [ "$not_expired" != "1" ]; then
+ if [ ! -z "$expiry" ] && [ "$not_expired" != "1" ]; then
echo "Fatal: key $recipient has no keys suitable for encryption: all subkeys expired."
exit 1
fi