summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2015-06-26 12:06:31 +0200
committerWerner Koch <wk@gnupg.org>2015-06-26 12:06:31 +0200
commitcd8face27cc96cb0092c920e6e5bdee81a61c420 (patch)
tree2b7470d9361ae2fb2089bb6172a564678bfc3626
parent0da6afa864cfd68333941d6332d762c82928946c (diff)
downloadlibassuan-cd8face27cc96cb0092c920e6e5bdee81a61c420.tar.gz
Return GPG_ERR_SOURCE_ASSUAN on errors with no CTX.
* src/assuan-defs.h (_assuan_error): Use error source Assuan if no CTX is given. Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--src/assuan-defs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/assuan-defs.h b/src/assuan-defs.h
index 3dec3df..68cd810 100644
--- a/src/assuan-defs.h
+++ b/src/assuan-defs.h
@@ -228,7 +228,7 @@ struct assuan_context_s
static GPG_ERR_INLINE gpg_error_t
_assuan_error (assuan_context_t ctx, gpg_err_code_t errcode)
{
- return gpg_err_make (ctx?ctx->err_source:0, errcode);
+ return gpg_err_make (ctx?ctx->err_source: GPG_ERR_SOURCE_ASSUAN, errcode);
}
/* Release all resources associated with an engine operation. */