|
|
@ -561,8 +561,7 @@ f2b_jail_cmd_ip_xxx(char *res, size_t ressize, f2b_jail_t *jail, int op, const c |
|
|
|
if (op > 0) { |
|
|
|
if (op > 0) { |
|
|
|
/* ban */ |
|
|
|
/* ban */ |
|
|
|
time_t now = time(NULL); |
|
|
|
time_t now = time(NULL); |
|
|
|
addr = f2b_ipaddr_create(ip); |
|
|
|
if ((addr = f2b_ipaddr_create(ip)) == NULL) { |
|
|
|
if (!addr) { |
|
|
|
|
|
|
|
snprintf(res, ressize, "can't parse ip address: %s", ip); |
|
|
|
snprintf(res, ressize, "can't parse ip address: %s", ip); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|