From: Werner Koch Date: Thu, 13 Jun 2002 08:45:32 +0000 (+0000) Subject: * verify.c (gpgme_op_verify): Make sure that we never access an X-Git-Tag: gpgme-0-3-8~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=276e401c427dc0700c2cc9ecd8017cc052e54cfd;p=gpgme.git * verify.c (gpgme_op_verify): Make sure that we never access an unitialized result structure. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 09c56ac..44bcc31 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2002-06-13 Werner Koch + + * verify.c (gpgme_op_verify): Make sure that we never access an + unitialized result structure. + 2002-06-12 Werner Koch * keylist.c (struct keylist_result_s): New. diff --git a/gpgme/verify.c b/gpgme/verify.c index be2067c..fe99aa9 100644 --- a/gpgme/verify.c +++ b/gpgme/verify.c @@ -461,7 +461,7 @@ gpgme_op_verify (GpgmeCtx ctx, GpgmeData sig, GpgmeData text, if (!err) { err = _gpgme_wait_one (ctx); - if (!err) + if (!err && ctx->result.verify) *r_stat = _gpgme_intersect_stati (ctx->result.verify); } return err;