aboutsummaryrefslogtreecommitdiffstats
path: root/src/mkerrors
diff options
context:
space:
mode:
Diffstat (limited to 'src/mkerrors')
-rwxr-xr-xsrc/mkerrors9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mkerrors b/src/mkerrors
index 4f37e06..7087fdb 100755
--- a/src/mkerrors
+++ b/src/mkerrors
@@ -56,8 +56,13 @@ _assuan_error (int oldcode)
unsigned int n;
if (!err_source)
- return (oldcode & 0x00ffffff); /* Make sure that the gpg-error
- source part is cleared. */
+ {
+ if (oldcode == -1)
+ return -1;
+ else
+ return (oldcode & 0x00ffffff); /* Make sure that the gpg-error
+ source part is cleared. */
+ }
switch (oldcode)
{