diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-23 13:19:43 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-23 13:19:43 +0200 |
commit | 3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8 (patch) | |
tree | c64863c6c06f7eeabe01c3b9f170dd013ca2b6f7 | |
parent | 34938ffaecadcecd860ace558ab3ba21c4e48b12 (diff) | |
download | pingu-3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8.tar.bz2 pingu-3bf88a0f1d34ee84e7c0c54034a4e2c2ccfc9bd8.tar.xz |
pingu_conf: fix segfault when declaring iface twice
-rw-r--r-- | src/pingu_conf.c | 3 |
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; } |