Commit 1d43a717730346de2c664c0eccf0592eb4ba2cd8

Authored by bellard
1 parent ae184e4a

forgot fclose()


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@979 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 1 deletions
slirp/slirp.c
... ... @@ -65,6 +65,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
65 65 lprint("%s", inet_ntoa(tmp_addr));
66 66 }
67 67 }
  68 + fclose(f);
68 69 if (!found)
69 70 return -1;
70 71 return 0;
... ... @@ -75,7 +76,7 @@ static int get_dns_addr(struct in_addr *pdns_addr)
75 76 void slirp_init(void)
76 77 {
77 78 // debug_init("/tmp/slirp.log", DEBUG_DEFAULT);
78   -
  79 +
79 80 link_up = 1;
80 81  
81 82 if_init();
... ...