chiark / gitweb /
g10: Fix import/export filter property match.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 17 Apr 2017 00:08:31 +0000 (09:08 +0900)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 18 Sep 2017 20:41:12 +0000 (21:41 +0100)
* g10/import.c (impex_filter_getval): Fix to "else if".

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
(cherry picked from commit af5f8ecf51f5e1f33e832d4946d02313b78a0536)

Gbp-Pq: Name 0071-g10-Fix-import-export-filter-property-match.patch

g10/import.c

index 4e6f6923defe8e8a54dc2559d47696ca839a9582..125b9948b0750330e3c6d6634d80d71c217cd2ad 100644 (file)
@@ -1235,7 +1235,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;