From c8d37c30042e0211df61024ec99162b12886d2aa Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Wed, 2 Mar 2016 14:31:46 +1000 Subject: [PATCH] * fixes in src/ipaddr.[ch] --- src/ipaddr.c | 2 +- src/ipaddr.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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;