From 674bf612e4903fce4e2b85bd901b2a16ed727e5a Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 8 Nov 2010 09:16:06 +0900 Subject: [PATCH] small fix --- ChangeLog | 5 +++++ src/openpgp-do.c | 12 +++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index a483521..95bc13b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-08 NIIBE Yutaka + + * src/openpgp-do.c (do_hist_bytes, do_fp_all, do_cafp_all) + (do_kgtime_all, do_ds_count): Fix return value. + 2010-11-05 NIIBE Yutaka Bug fixes. diff --git a/src/openpgp-do.c b/src/openpgp-do.c index 83e4316..e29350e 100644 --- a/src/openpgp-do.c +++ b/src/openpgp-do.c @@ -285,7 +285,7 @@ do_hist_bytes (uint16_t tag, int with_tag) /* XXX: For now, no life cycle management, just return template as is. */ /* XXX: Supporing TERMINATE DF / ACTIVATE FILE, we need to fix here */ copy_do_1 (tag, historical_bytes, with_tag); - return 0; + return 1; } #define SIZE_FP 20 @@ -322,8 +322,7 @@ do_fp_all (uint16_t tag, int with_tag) else memset (res_p, 0, SIZE_FP); res_p += SIZE_FP; - - return 0; + return 1; } static int @@ -357,8 +356,7 @@ do_cafp_all (uint16_t tag, int with_tag) else memset (res_p, 0, SIZE_FP); res_p += SIZE_FP; - - return 0; + return 1; } static int @@ -392,7 +390,7 @@ do_kgtime_all (uint16_t tag, int with_tag) else memset (res_p, 0, SIZE_KGTIME); res_p += SIZE_KGTIME; - return 0; + return 1; } static int @@ -407,7 +405,7 @@ do_ds_count (uint16_t tag, int with_tag) *res_p++ = (digital_signature_counter >> 16) & 0xff; *res_p++ = (digital_signature_counter >> 8) & 0xff; *res_p++ = digital_signature_counter & 0xff; - return 0; + return 1; } static int