From: Marcus Brinkmann Date: Thu, 28 Oct 2010 14:00:14 +0000 (+0000) Subject: 2010-10-28 Marcus Brinkmann X-Git-Tag: gpgme-1.3.1~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b65638692eb06d9d6770d6a4884165ad07dac5aa;p=gpgme.git 2010-10-28 Marcus Brinkmann * opassuan.c (gpgme_op_assuan_transact_ext): Fix uninitialized value use. Reported by Marc Mutz. --- diff --git a/src/ChangeLog b/src/ChangeLog index 50b0b68..a868d6d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-10-28 Marcus Brinkmann + + * opassuan.c (gpgme_op_assuan_transact_ext): Fix uninitialized + value use. Reported by Marc Mutz. + 2010-10-07 Werner Koch * gpgme-tool.c (ARGP_ERR_UNKNOWN): Use EDEADLK if available. diff --git a/src/opassuan.c b/src/opassuan.c index 639a366..bd50089 100644 --- a/src/opassuan.c +++ b/src/opassuan.c @@ -126,9 +126,10 @@ gpgme_op_assuan_transact_ext (gpgme_ctx_t ctx, data_cb, data_cb_value, inq_cb, inq_cb_value, status_cb, status_cb_value); - if (!err) - err = _gpgme_wait_one_ext (ctx, &op_err); + if (err) + goto out; + err = _gpgme_wait_one_ext (ctx, &op_err); if (op_err) { TRACE_LOG2 ("op_err = %s <%s>", gpgme_strerror (op_err), @@ -140,7 +141,8 @@ gpgme_op_assuan_transact_ext (gpgme_ctx_t ctx, } if (op_err_p) *op_err_p = op_err; - + + out: return TRACE_ERR (err); }