Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -265,11 +265,10 @@ socklen_t addr_len; int pton_ret, bind_ret, listen_ret; int family; int fd; - family = AF_INET6; pton_ret = inet_pton(family, address, &addr_v6.sin6_addr.s6_addr); if (pton_ret != 1) { family = AF_INET; pton_ret = inet_pton(family, address, &addr_v4.sin_addr.s_addr); @@ -320,12 +319,19 @@ # define filed_log_msg_debug(x, ...) /**/ # define filed_log_msg(x, ...) /**/ # define filed_log_entry(x) /**/ # define filed_log_ip(x, ...) NULL # define filed_log_new(x) &local_dummy_log -# define filed_log_open(x) stdout +# define filed_log_free(x) /**/ + +/* Return logging handle */ +static FILE *filed_log_open(const char *file) { + return(stdout); + file = file; +} #else +# define filed_log_free(x) free(x) # ifdef FILED_DEBUG # define filed_log_msg_debug(x, ...) { fprintf(stderr, x, __VA_ARGS__); fprintf(stderr, "\n"); fflush(stderr); } # else # define filed_log_msg_debug(x, ...) /**/ # endif @@ -1161,11 +1167,11 @@ /* Log the new connection */ filed_log_msg("ACCEPT_FAILED"); failure_count++; - free(log); + filed_log_free(log); continue; } /* Fill in log structure */