summaryrefslogtreecommitdiffstats
path: root/ipset.c
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu>2008-06-12 09:22:25 +0000
committer/C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu </C=EU/ST=EU/CN=Jozsef Kadlecsik/emailAddress=kadlec@blackhole.kfki.hu>2008-06-12 09:22:25 +0000
commitb991e7d1507b2e9db9a4cf181c61b1286e2df0ff (patch)
treef53f11f1e6fdf7f347e1d0bec49f9e2b561efe76 /ipset.c
parentb808269477765dd5ca9500f47665d0926b8621ce (diff)
ipset -U segfault fix committed.
Testsuite added.
Diffstat (limited to 'ipset.c')
-rw-r--r--ipset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipset.c b/ipset.c
index 9d7f78b..1857180 100644
--- a/ipset.c
+++ b/ipset.c
@@ -1638,7 +1638,7 @@ static int set_bind(struct set *set, const char *adt,
DP("(%s, %s) -> %s", set ? set->name : IPSET_TOKEN_ALL, adt, binding);
/* Ugly */
- if (strcmp(set->settype->typename, "iptreemap") == 0)
+ if (set && strcmp(set->settype->typename, "iptreemap") == 0)
exit_error(PARAMETER_PROBLEM,
"iptreemap type of sets cannot be used at binding operations\n");
/* Alloc memory for the data to send */