Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > e80ad5c547cde637009b114ed4fb8804 > files > 2

radvd-2.11-2.1.mga6.src.rpm

From fb1529d0573d3d9744a0e9fea8dd0becfc91ad85 Mon Sep 17 00:00:00 2001
From: Pavel Zhukov <pzhukov@redhat.com>
Date: Thu, 24 Jan 2019 13:21:55 +0100
Subject: [PATCH] Fix double-free scenario in case if duplicate interface was
 specified (Fixes #100).

Signed-off-by: Pavel Zhukov <pzhukov@redhat.com>
---
 gram.y | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gram.y b/gram.y
index 5db3bde..20af2f3 100644
--- a/gram.y
+++ b/gram.y
@@ -958,6 +958,7 @@ struct Interface * readin_config(char const *path)
 		if (yyparse() != 0) {
 			free_ifaces(iface);
 			iface = 0;
+			IfaceList = 0;
 		} else {
 			dlog(LOG_DEBUG, 1, "config file, %s, syntax ok", path);
 		}