[network-manager-openvpn] helper: fix use-after-free for IPv6 routes
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openvpn] helper: fix use-after-free for IPv6 routes
- Date: Fri, 13 Nov 2015 15:15:42 +0000 (UTC)
commit c32ff77c9ece20f15addacbcd30f6ce866a2e51a
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Fri Nov 13 14:39:39 2015 +0100
helper: fix use-after-free for IPv6 routes
src/nm-openvpn-service-openvpn-helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nm-openvpn-service-openvpn-helper.c b/src/nm-openvpn-service-openvpn-helper.c
index cad8cd0..00f71a8 100644
--- a/src/nm-openvpn-service-openvpn-helper.c
+++ b/src/nm-openvpn-service-openvpn-helper.c
@@ -310,12 +310,12 @@ get_ip6_routes (void)
g_strfreev (dest_prefix);
continue;
}
- g_strfreev (dest_prefix);
snprintf (buf, BUFLEN, "route_ipv6_gateway_%d", i);
tmp = getenv (buf);
route = nm_ip_route_new (AF_INET6, dest_prefix[0], prefix, tmp, -1, &error);
+ g_strfreev (dest_prefix);
if (!route) {
g_warning ("Ignoring a route: %s", error->message);
g_error_free (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]