From cd8face27cc96cb0092c920e6e5bdee81a61c420 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 26 Jun 2015 12:06:31 +0200 Subject: 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 --- src/assuan-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- cgit v1.2.1