From af5f8ecf51f5e1f33e832d4946d02313b78a0536 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 17 Apr 2017 09:08:31 +0900 Subject: [PATCH] g10: Fix import/export filter property match. * g10/import.c (impex_filter_getval): Fix to "else if". Signed-off-by: NIIBE Yutaka --- g10/import.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/import.c b/g10/import.c index 54d649b34..ba1c44a43 100644 --- a/g10/import.c +++ b/g10/import.c @@ -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;