[Pkg-gnupg-commit] [gnupg2] 182/292: g10: Assert preconditions.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:40 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 66a0091d74768ab3a4a5342d3645e1834c59045a
Author: Justus Winter <justus at g10code.com>
Date:   Thu Oct 27 14:43:29 2016 +0200

    g10: Assert preconditions.
    
    * g10/getkey.c (get_pubkey_byname): Assert preconditions.
    
    Signed-off-by: Justus Winter <justus at g10code.com>
---
 g10/getkey.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/g10/getkey.c b/g10/getkey.c
index 7b1c22b..22842fe 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -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;
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list