add check for broken OpenBSD fclose()

http://marc.info/?l=openbsd-bugs&m=145280872431093&w=2

closes #95
This commit is contained in:
rofl0r
2016-02-04 12:49:43 +00:00
parent a1c31e73b6
commit b64c89e0e4
2 changed files with 28 additions and 0 deletions

View File

@ -290,7 +290,9 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
}
}
}
#ifndef BROKEN_FCLOSE
fclose(file);
#endif
if(!count) {
fprintf(stderr, "error: no valid proxy found in config\n");
exit(1);