[git] GPGME - branch, master, updated. gpgme-1.12.0-101-g78f6291

by Andre Heinecke cvs at cvs.gnupg.org
Fri Dec 7 10:44:31 CET 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GnuPG Made Easy".

The branch, master has been updated
       via  78f6291a3bf56769f53af66fe39718ddd2d74bf2 (commit)
      from  ad030234b4b50f1152731a17c54a53be2f2e0c25 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 78f6291a3bf56769f53af66fe39718ddd2d74bf2
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Fri Dec 7 10:43:58 2018 +0100

    core: Fix ERR_INV_ARG check in genkey_start
    
    * src/genkey.c (gpgme_op_genkey_start): Fix check for
    parms.
    
    --
    This fixes a regression introduced by:
    174af15725d4989a840ff3098996cc8a0568f724
    
    So that the error was triggered by usual args.
    
    GnuPG-Bug-Id: T4265

diff --git a/src/genkey.c b/src/genkey.c
index b51dbf0..77576b1 100644
--- a/src/genkey.c
+++ b/src/genkey.c
@@ -290,7 +290,7 @@ gpgme_op_genkey_start (gpgme_ctx_t ctx, const char *parms,
 	      "pubkey=%p, seckey=%p", pubkey, seckey);
   TRACE_LOGBUF (parms, parms? strlen (parms):0);
 
-  if (!ctx || parms)
+  if (!ctx || !parms)
     return TRACE_ERR (gpg_error (GPG_ERR_INV_ARG));
 
   err = genkey_start (ctx, 0, parms, pubkey, seckey);

-----------------------------------------------------------------------

Summary of changes:
 src/genkey.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
GnuPG Made Easy
http://git.gnupg.org




More information about the Gnupg-commits mailing list