From e02afcff09fb2bd12bbdc8f6c0963f38fa3e0ec4 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 5 Nov 2015 16:39:19 +0100 Subject: [PATCH] device: fix a dad6_failed_addrs use-after-free --- src/devices/nm-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index bc10379890..3d4245ee67 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -7881,6 +7881,7 @@ queued_ip6_config_change (gpointer user_data) nm_rdisc_dad_failed (priv->rdisc, &addr->address); } g_slist_free_full (priv->dad6_failed_addrs, g_free); + priv->dad6_failed_addrs = NULL; /* If no IPv6 link-local address exists but other addresses do then we * must add the LL address to remain conformant with RFC 3513 chapter 2.1