You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
668 B
24 lines
668 B
4 years ago
|
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);
|
||
|
}
|