1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-26 15:06:04 +03:00

Fix unused label, clear newroot pointer

This commit is contained in:
Bjorn Andersson 2006-06-11 17:43:04 +00:00
parent 96ef5da119
commit 7dfe4f5d1f

View File

@ -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;
} }