core: Return an error if NULL is provided for genkey's parms.
* src/debug.c (_gpgme_debug_buffer): Bail out of BUF is NULL. * src/genkey.c (gpgme_op_genkey): Do no deref a NULL in TRACE_LOGBUF. (gpgme_op_genkey_start): Ditto. Return an error if PARMS is NULL.
This robustness patch should solve one part of
- GnuPG-bug-id: T4192
- Signed-off-by: Werner Koch <wk@gnupg.org>