diff --git a/src/ipaddr.c b/src/ipaddr.c index 875594c..e15c48e 100644 --- a/src/ipaddr.c +++ b/src/ipaddr.c @@ -19,7 +19,7 @@ f2b_ipaddr_create(const char *addr, size_t matches) { if (inet_pton(a->type, addr, &a->binary.v6) < 1) goto cleanup; } - + if (f2b_matches_create(&a->matches, matches) == false) goto cleanup; } diff --git a/src/ipaddr.h b/src/ipaddr.h index aff7a61..5e3343a 100644 --- a/src/ipaddr.h +++ b/src/ipaddr.h @@ -9,6 +9,7 @@ typedef struct f2b_ipaddr_t { struct f2b_ipaddr_t *next; int type; char text[40]; /* 8 x "ffff" + 7 x ":" + '\0' */ + bool banned; union { struct in_addr v4; struct in6_addr v6;