diff options
Diffstat (limited to 'ipset_iphash.c')
-rw-r--r-- | ipset_iphash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipset_iphash.c b/ipset_iphash.c index a17efac..ac0340e 100644 --- a/ipset_iphash.c +++ b/ipset_iphash.c @@ -152,6 +152,9 @@ ip_set_ip_t adt_parser(unsigned cmd, const char *optarg, void *data) (struct ip_set_req_iphash *) data; parse_ip(optarg, &mydata->ip); + if (!mydata->ip) + exit_error(PARAMETER_PROBLEM, + "Zero valued IP address `%s' specified", optarg); return mydata->ip; }; |