summaryrefslogtreecommitdiffstats
path: root/lib/parse.c
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-05-04 21:45:07 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-05-04 21:45:07 +0200
commit2916bdda810591ecc8f3283b68136ec79f6c2377 (patch)
treef58a262182a0f66dbaa37883fdae19c3928ac8d6 /lib/parse.c
parent7219d88329cabcdd05df9477af6e2dee007b60b1 (diff)
Remove unused variables (warnings fixed)
Diffstat (limited to 'lib/parse.c')
-rw-r--r--lib/parse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/parse.c b/lib/parse.c
index 2cbd30e..45937f0 100644
--- a/lib/parse.c
+++ b/lib/parse.c
@@ -1554,6 +1554,8 @@ ipset_parse_iface(struct ipset_session *session,
if (STREQ(str, "physdev:")) {
offset = 8;
err = ipset_data_set(data, IPSET_OPT_PHYSDEV, str);
+ if (err < 0)
+ return err;
}
if (strlen(str + offset) > IFNAMSIZ - 1)
return syntax_err("interface name '%s' is longer "