comparison src/dnsbl.cpp @ 248:b0738685bf51

latest tld list; fix uninitialized variable
author Carl Byington <carl@five-ten-sg.com>
date Fri, 06 Jan 2012 22:07:45 -0800
parents 8b0f16abee53
children 15bf4f68a0b2
comparison
equal deleted inserted replaced
247:33d080ace816 248:b0738685bf51
109 int NULL_SOCKET = -1; 109 int NULL_SOCKET = -1;
110 const time_t ERROR_SOCKET_TIME = 60; // number of seconds between attempts to open a socket to the dns resolver process 110 const time_t ERROR_SOCKET_TIME = 60; // number of seconds between attempts to open a socket to the dns resolver process
111 const char *resolver_port = NULL; // unix domain socket to talk to the dns resolver process 111 const char *resolver_port = NULL; // unix domain socket to talk to the dns resolver process
112 int resolver_socket = NULL_SOCKET; // socket used to listen for resolver requests 112 int resolver_socket = NULL_SOCKET; // socket used to listen for resolver requests
113 const char *dccifd_port = NULL; // unix domain socket to talk to the dcc interface daemon 113 const char *dccifd_port = NULL; // unix domain socket to talk to the dcc interface daemon
114 time_t last_error_time; 114 time_t last_error_time = 0;
115 int resolver_sock_count = 0; // protected with fd_pool_mutex 115 int resolver_sock_count = 0; // protected with fd_pool_mutex
116 int resolver_pool_size = 0; // protected with fd_pool_mutex 116 int resolver_pool_size = 0; // protected with fd_pool_mutex
117 rcpt_rates rcpt_counts; // protected with rate_mutex 117 rcpt_rates rcpt_counts; // protected with rate_mutex
118 118
119 119