diff --git a/g10/keyid.c b/g10/keyid.c index ea6ed5ef0..4380151ee 100644 --- a/g10/keyid.c +++ b/g10/keyid.c @@ -403,6 +403,8 @@ keystr (u32 *keyid) static char keyid_str[KEYID_STR_SIZE]; int format = opt.keyid_format; + if (format == KF_DEFAULT) + format = KF_NONE; if (format == KF_NONE) format = KF_LONG;