From: Michael Tremer Date: Wed, 3 Jun 2015 15:55:55 +0000 (+0200) Subject: rebuildhosts: Fix SEGV when not online X-Git-Tag: v2.17-core91~25 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=bd33c332275ccb041a908c6e53ba78a1fa82f900;ds=inline rebuildhosts: Fix SEGV when not online Fixes #10867 --- diff --git a/src/misc-progs/rebuildhosts.c b/src/misc-progs/rebuildhosts.c index 21c523600c..fdaeed618e 100644 --- a/src/misc-progs/rebuildhosts.c +++ b/src/misc-progs/rebuildhosts.c @@ -82,8 +82,6 @@ int main(int argc, char *argv[]) if (!(gw = fopen(CONFIG_ROOT "/red/remote-ipaddress", "r"))) { fprintf(stderr, "Couldn't open remote-ipaddress file\n"); - fclose(gw); - gw = NULL; exit(1); }