diff --git a/smmapdfw/libsmmapdfw/htdns.c b/smmapdfw/libsmmapdfw/htdns.c index 3647757..07efc76 100644 --- a/smmapdfw/libsmmapdfw/htdns.c +++ b/smmapdfw/libsmmapdfw/htdns.c @@ -34,6 +34,7 @@ #if HAVE_LIBDJBDNS #include +#include #include #else #include @@ -351,7 +352,7 @@ static void** get_rrs(char *domain, int qtype) { pthread_mutex_unlock(&dns_transmit_mutex); syslog(LOG_DEBUG, "get_rrs: (4) q = %p", q); - free(q); + alloc_free(q); q = NULL; #endif diff --git a/smmapdfw/smmapd/smmapd.c b/smmapdfw/smmapd/smmapd.c index c12b2f2..98c5c39 100644 --- a/smmapdfw/smmapd/smmapd.c +++ b/smmapdfw/smmapd/smmapd.c @@ -403,7 +403,7 @@ int server() { } #endif /* ENABLE_NETSNMP */ - // while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 1000) { + // while (getStatCounter(globalStatCounter, STAT_CNT_ACCEPTED) < 100) { while (1) { syslog(LOG_DEBUG, "server: Waiting for connection");