mirror of
https://github.com/rofl0r/proxychains-ng.git
synced 2024-10-31 17:18:47 +00:00
main.c: fixed forgotten initialization for second loop using i
this caused the combination of -q -f somefile to not find the dll in the current dir, because it started iterating the directory list with 2 instead of 0.
This commit is contained in:
parent
f011ff99dd
commit
7bca3ba5ef
@ -104,6 +104,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
set_own_dir(argv[0]);
|
||||
|
||||
i = 0;
|
||||
|
||||
while(dll_dirs[i]) {
|
||||
snprintf(buf, sizeof(buf), "%s/%s", dll_dirs[i], dll_name);
|
||||
if(access(buf, R_OK) != -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user