From 107c63388a1f7f7f447609a50769b0c16a325dcf Mon Sep 17 00:00:00 2001 From: Jan Behrens Date: Sun, 18 Aug 2013 17:43:02 +0200 Subject: [PATCH] Revert to old semantics, just fix the bug --- crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto.c b/crypto.c index 25900136..a3bbb746 100644 --- a/crypto.c +++ b/crypto.c @@ -731,9 +731,9 @@ int Crypto_RetrieveLocalKey(int keyid, char *keyfp, size_t keyfplen, char *idfp, *idfp = 0; if(!pubkeys[keyid]) return -1; - if(keyfplen) + if(keyfp) strlcpy(keyfp, pubkeys_fp64[keyid], keyfplen); - if(idfplen) + if(idfp) if(pubkeys_havepriv[keyid]) strlcpy(idfp, pubkeys_priv_fp64[keyid], idfplen); if(issigned) -- 2.39.2