aboutsummaryrefslogtreecommitdiff
path: root/slirp
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-05 21:18:42 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-07-05 21:18:42 +0000
commit1d43a717730346de2c664c0eccf0592eb4ba2cd8 (patch)
treed3b9a165277b0f36971eca7e5d3eacc46b34b337 /slirp
parentae184e4ab773aaef59226412ddf602a790170dc3 (diff)
forgot fclose()
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@979 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp')
-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();