mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
g10: Assert preconditions.
* g10/getkey.c (get_pubkey_byname): Assert preconditions. Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
cf20b23c14
commit
66a0091d74
@ -1203,6 +1203,9 @@ get_pubkey_byname (ctrl_t ctrl, GETKEY_CTX * retctx, PKT_public_key * pk,
|
||||
int nodefault = 0;
|
||||
int anylocalfirst = 0;
|
||||
|
||||
/* If RETCTX is not NULL, then RET_KDBHD must be NULL. */
|
||||
log_assert (retctx == NULL || ret_kdbhd == NULL);
|
||||
|
||||
if (retctx)
|
||||
*retctx = NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user