]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Revert to old semantics, just fix the bug zykure/fixes
authorJan Behrens <zykure@web.de>
Sun, 18 Aug 2013 15:43:02 +0000 (17:43 +0200)
committerJan Behrens <zykure@web.de>
Sun, 18 Aug 2013 15:43:02 +0000 (17:43 +0200)
crypto.c

index 25900136b4df69dc725b6ff14394c6c748b6d0b4..a3bbb746ebb971d8466f2cc886274bfb3b28e31e 100644 (file)
--- 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)