aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slirp/slirp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c
index f9c4f159e9..ad10516a06 100644
--- a/slirp/slirp.c
+++ b/slirp/slirp.c
@@ -65,6 +65,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
lprint("%s", inet_ntoa(tmp_addr));
}
}
+ fclose(f);
if (!found)
return -1;
return 0;
@@ -75,7 +76,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
void slirp_init(void)
{
// debug_init("/tmp/slirp.log", DEBUG_DEFAULT);
-
+
link_up = 1;
if_init();