Fix use-after-free in gnunet-cadet
authorDavid Barksdale <amatus@amat.us>
Wed, 27 Dec 2017 17:47:08 +0000 (11:47 -0600)
committerDavid Barksdale <amatus@amat.us>
Wed, 27 Dec 2017 17:47:08 +0000 (11:47 -0600)
src/cadet/gnunet-cadet.c

index 675e7faf026b51164e94d10622081960f801cad6..a9b02714bfc5fa97a22ad34dee666ebfa8de242e 100644 (file)
@@ -693,6 +693,7 @@ show_tunnel (void *cls)
 {
   struct GNUNET_PeerIdentity pid;
 
+  job = NULL;
   if (GNUNET_OK !=
       GNUNET_CRYPTO_eddsa_public_key_from_string (tunnel_id,
                                                   strlen (tunnel_id),