/* Put a misbehaving connection in the tarpit */
void tarpit(int fd) {
static int pits[10] = {-1, -1, -1, -1, -1, -1, -1, -1, -1, -1};
- static int next_pit = 0;
+ static unsigned int next_pit = 0;
if(pits[next_pit] != -1) {
closesocket(pits[next_pit]);
subnet_t *subnet, *s2;
if(!get_config_subnet(cfg, &subnet)) {
+ cfg = lookup_config_next(config_tree, cfg);
continue;
}