Browse Source

* misc fixes

master
Alex 'AdUser' Z 4 years ago
parent
commit
4baaae4b36
  1. 1
      src/backend.c
  2. 2
      src/statefile.c

1
src/backend.c

@ -138,6 +138,7 @@ f2b_backend_destroy(f2b_backend_t *backend) {
if (backend->cfg)
backend->destroy(backend->cfg);
dlclose(backend->h);
backend->h = NULL;
}
free(backend);
}

2
src/statefile.c

@ -56,7 +56,7 @@ f2b_statefile_load(f2b_statefile_t *sf) {
const int fields = 3;
const char *format = "%48s %u %u"; /* 48 == IPADDR_MAX == sizeof(addr) */
f2b_ipaddr_t *addrlist = NULL, *ipaddr = NULL;
char buf[256], addr[IPADDR_MAX], *p;
char buf[256], addr[IPADDR_MAX + 1], *p;
unsigned int banned_at, release_at;
FILE *f = NULL;

Loading…
Cancel
Save