Browse Source

* fixes in src/ipaddr.[ch]

master
Alex 'AdUser' Z 9 years ago
parent
commit
c8d37c3004
  1. 2
      src/ipaddr.c
  2. 1
      src/ipaddr.h

2
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;
}

1
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;

Loading…
Cancel
Save