mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-03 06:57:27 +00:00
Fix unused label, clear newroot pointer
This commit is contained in:
parent
96ef5da119
commit
7dfe4f5d1f
6
iodine.c
6
iodine.c
|
@ -186,6 +186,7 @@ main(int argc, char **argv)
|
||||||
int foreground;
|
int foreground;
|
||||||
struct passwd *pw;
|
struct passwd *pw;
|
||||||
|
|
||||||
|
newroot = NULL;
|
||||||
username = NULL;
|
username = NULL;
|
||||||
foreground = 0;
|
foreground = 0;
|
||||||
|
|
||||||
|
@ -232,7 +233,7 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tun_fd = open_tun()) == -1)
|
if ((tun_fd = open_tun()) == -1)
|
||||||
goto cleanup0;
|
goto cleanup1;
|
||||||
if ((dns_fd = open_dns(argv[0], argv[1])) == -1)
|
if ((dns_fd = open_dns(argv[0], argv[1])) == -1)
|
||||||
goto cleanup2;
|
goto cleanup2;
|
||||||
|
|
||||||
|
@ -268,9 +269,8 @@ main(int argc, char **argv)
|
||||||
|
|
||||||
cleanup2:
|
cleanup2:
|
||||||
close_dns(dns_fd);
|
close_dns(dns_fd);
|
||||||
cleanup1:
|
|
||||||
close_tun(tun_fd);
|
close_tun(tun_fd);
|
||||||
cleanup0:
|
cleanup1:
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue