g10: Fix import/export filter property match.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:08:31 +0000 (09:08 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:08:31 +0000 (09:08 +0900)
* g10/import.c (impex_filter_getval): Fix to "else if".

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/import.c

index 54d649b..ba1c44a 100644 (file)
@@ -1261,7 +1261,7 @@ impex_filter_getval (void *cookie, const char *propname)
           snprintf (numbuf, sizeof numbuf, "%d", pk->pubkey_algo);
           result = numbuf;
         }
-      if (!strcmp (propname, "key_created"))
+      else if (!strcmp (propname, "key_created"))
         {
           snprintf (numbuf, sizeof numbuf, "%lu", (ulong)pk->timestamp);
           result = numbuf;