aboutsummaryrefslogtreecommitdiffstats
path: root/src/genkey.c
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2018-12-07 09:43:58 +0000
committerAndre Heinecke <[email protected]>2018-12-07 09:43:58 +0000
commit78f6291a3bf56769f53af66fe39718ddd2d74bf2 (patch)
tree903cea9af66431a0b30fec1c24bbcbc51df7af26 /src/genkey.c
parentMerge branch 'master' of ssh+git://playfair.gnupg.org/git/gpgme (diff)
downloadgpgme-78f6291a3bf56769f53af66fe39718ddd2d74bf2.tar.gz
gpgme-78f6291a3bf56769f53af66fe39718ddd2d74bf2.zip
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
Diffstat (limited to 'src/genkey.c')
-rw-r--r--src/genkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genkey.c b/src/genkey.c
index b51dbf04..77576b18 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);