aboutsummaryrefslogtreecommitdiffstats
path: root/sm/call-agent.c
diff options
context:
space:
mode:
Diffstat (limited to 'sm/call-agent.c')
-rw-r--r--sm/call-agent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sm/call-agent.c b/sm/call-agent.c
index 1982b228c..7065ab872 100644
--- a/sm/call-agent.c
+++ b/sm/call-agent.c
@@ -574,8 +574,8 @@ learn_cb (void *opaque, const void *buffer, size_t length)
log_error ("invalid certificate: %s\n", gnupg_strerror (rc));
else
{
- keydb_store_cert (cert);
- log_error ("certificate stored\n");
+ if (!keydb_store_cert (cert))
+ log_error ("certificate imported\n");
}
ksba_cert_release (cert);