aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);