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:
174af15725
So that the error was triggered by usual args.
GnuPG-Bug-Id: T4265
This commit is contained in:
parent
ad030234b4
commit
78f6291a3b
@ -290,7 +290,7 @@ gpgme_op_genkey_start (gpgme_ctx_t ctx, const char *parms,
|
|||||||
"pubkey=%p, seckey=%p", pubkey, seckey);
|
"pubkey=%p, seckey=%p", pubkey, seckey);
|
||||||
TRACE_LOGBUF (parms, parms? strlen (parms):0);
|
TRACE_LOGBUF (parms, parms? strlen (parms):0);
|
||||||
|
|
||||||
if (!ctx || parms)
|
if (!ctx || !parms)
|
||||||
return TRACE_ERR (gpg_error (GPG_ERR_INV_ARG));
|
return TRACE_ERR (gpg_error (GPG_ERR_INV_ARG));
|
||||||
|
|
||||||
err = genkey_start (ctx, 0, parms, pubkey, seckey);
|
err = genkey_start (ctx, 0, parms, pubkey, seckey);
|
||||||
|
Loading…
Reference in New Issue
Block a user