aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/ChangeLog4
-rw-r--r--common/maperror.c6
2 files changed, 10 insertions, 0 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index ff9762bf6..5990d5155 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-25 Werner Koch <[email protected]>
+
+ * maperror.c (map_to_assuan_status): Directly map 0 to 0.
+
2003-06-17 Werner Koch <[email protected]>
* gettime.c (scan_isodatestr,add_days_to_timestamp,strtimevalue)
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)
+
+
+
+