aboutsummaryrefslogtreecommitdiffstats
path: root/main/pingu/fix-segfault-when-declaring-iface-twice.patch
blob: bf50f7e9d0ab8493e5a4996d44d4cfbe876378f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8 Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Fri, 23 Aug 2013 13:19:43 +0200
Subject: [PATCH] pingu_conf: fix segfault when declaring iface twice

---
 src/pingu_conf.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/pingu_conf.c b/src/pingu_conf.c
index 263a1f4..aa8395a 100644
--- a/pingu_conf.c
+++ b/pingu_conf.c
@@ -125,7 +125,8 @@ static int pingu_conf_read_iface(struct pingu_conf *conf, char *ifname)
 
 	iface = pingu_iface_get_by_name(ifname);
 	if (iface != NULL) {
-		log_error("Interface %s already declared (line %i)", conf->lineno);
+		log_error("Interface %s already declared (line %i)", ifname,
+			  conf->lineno);
 		return -1;
 	}
 
-- 
1.8.5.1