Exit if IP/mtu can not be configured

This commit is contained in:
Erik Ekman 2009-07-22 21:17:26 +00:00
parent 3ab3847efa
commit 50272de2b8

View File

@ -653,7 +653,7 @@ handshake_login(int dns_fd, int seed)
tun_setmtu(mtu) == 0) { tun_setmtu(mtu) == 0) {
return 0; return 0;
} else { } else {
warnx("Received handshake with bad data"); errx(4, "Failed to set IP and MTU");
} }
} else { } else {
fprintf(stderr, "Received bad handshake\n"); fprintf(stderr, "Received bad handshake\n");