summaryrefslogtreecommitdiffstats
path: root/common/membuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/membuf.c')
-rw-r--r--common/membuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/membuf.c b/common/membuf.c
index 737930b76..dc8f6f692 100644
--- a/common/membuf.c
+++ b/common/membuf.c
@@ -105,7 +105,7 @@ get_membuf (membuf_t *mb, size_t *len)
xfree (mb->buf);
mb->buf = NULL;
}
- errno = mb->out_of_core;
+ gpg_err_set_errno (mb->out_of_core);
return NULL;
}