aboutsummaryrefslogtreecommitdiffstats
path: root/common/maperror.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/maperror.c')
-rw-r--r--common/maperror.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/maperror.c b/common/maperror.c
index c6a1135c7..13657bece 100644
--- a/common/maperror.c
+++ b/common/maperror.c
@@ -129,6 +129,8 @@ map_to_assuan_status (int rc)
gpg_err_code_t ec = gpg_err_code (rc);
gpg_err_source_t es = gpg_err_source (rc);
+ if (!rc)
+ return 0;
if (!es)
{
es = GPG_ERR_SOURCE_USER_4; /* This should not happen, but we
@@ -149,3 +151,7 @@ map_to_assuan_status (int rc)
+
+
+
+