unsigned char bits;
patricia_node_t *node;
- if ((fp=fopen("ports.txt","r"))==NULL) {
+ if ((fp=fopen("data/ports.txt","r"))==NULL) {
Error("proxyscan",ERR_ERROR,"Unable to open ports file for reading!");
return;
}
break;
}
- res=sscanf(buf,"%s %hu",&ip,&port);
+ res=sscanf(buf,"%s %hu",ip,&port);
if (res<2)
continue;
}
}
}
+
+ fclose(fp);
}
unsigned int extrascancount() {
- int i;
unsigned int total=0;
extrascan *esp;
patricia_node_t *node;