]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a copy-paste error in the fix for #23693.
authorNick Mathewson <nickm@torproject.org>
Wed, 25 Apr 2018 12:00:55 +0000 (08:00 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 25 Apr 2018 12:00:55 +0000 (08:00 -0400)
Found by coverity; CID 25912; bug not in any released Tor.

src/or/router.c

index f29ebbdf882fc894f322be1e47f2e452c4db9c76..5405d312603cc5436bb59fed00e87c567ac5a631 100644 (file)
@@ -143,7 +143,7 @@ dup_onion_keys(crypto_pk_t **key, crypto_pk_t **last)
   if (onionkey)
     *key = crypto_pk_copy_full(onionkey);
   else
-    *last = NULL;
+    *key = NULL;
   if (lastonionkey)
     *last = crypto_pk_copy_full(lastonionkey);
   else