* verify.c (gpgme_op_verify): Make sure that we never access an
authorWerner Koch <wk@gnupg.org>
Thu, 13 Jun 2002 08:45:32 +0000 (08:45 +0000)
committerWerner Koch <wk@gnupg.org>
Thu, 13 Jun 2002 08:45:32 +0000 (08:45 +0000)
unitialized result structure.

trunk/gpgme/ChangeLog
trunk/gpgme/verify.c

index 09c56ac2aa3464fe03e5a22d7280a40eca7b0fe1..44bcc31004d0e62259129b978d8562cbc5e962f3 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-13  Werner Koch  <wk@gnupg.org>
+
+       * verify.c (gpgme_op_verify): Make sure that we never access an
+       unitialized result structure.
+
 2002-06-12  Werner Koch  <wk@gnupg.org>
 
        * keylist.c (struct keylist_result_s): New.
index be2067cd35d6e6ecf9a0d88e1f8bebe81f791579..fe99aa974f1aab5cd018893edc2410d32edde570 100644 (file)
@@ -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;