summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geoip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/geoip.c b/geoip.c
index 2eff817..9d2e82c 100644
--- a/geoip.c
+++ b/geoip.c
@@ -236,16 +236,15 @@ again:
printf("\n");
+ close(fd);
+ close(sock);
+
if (totlen != rtotlen) {
unlink(files[which].local);
return -EIO;
}
- close(fd);
- close(sock);
-
geoip_inflate(which);
-
unlink(zfile);
return 0;