aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-08-23 13:19:43 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2013-08-23 13:19:43 +0200
commit3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8 (patch)
treec64863c6c06f7eeabe01c3b9f170dd013ca2b6f7
parent34938ffaecadcecd860ace558ab3ba21c4e48b12 (diff)
downloadpingu-3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8.tar.bz2
pingu-3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8.tar.xz
pingu_conf: fix segfault when declaring iface twice
-rw-r--r--src/pingu_conf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pingu_conf.c b/src/pingu_conf.c
index 263a1f4..aa8395a 100644
--- a/src/pingu_conf.c
+++ b/src/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;
}