summaryrefslogtreecommitdiff
path: root/lib/nickserver/hkp/key_info.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/hkp/key_info.rb')
-rw-r--r--lib/nickserver/hkp/key_info.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nickserver/hkp/key_info.rb b/lib/nickserver/hkp/key_info.rb
index e1a9500..c1b1ad3 100644
--- a/lib/nickserver/hkp/key_info.rb
+++ b/lib/nickserver/hkp/key_info.rb
@@ -49,7 +49,7 @@ module Nickserver::Hkp
def expirationdate
expires = properties[4]
- Time.at(expires.to_i)
+ expires && Time.at(expires.to_i)
end
def flags