rebuildhosts: Fix SEGV when not online

Fixes #10867
This commit is contained in:
Michael Tremer
2015-06-03 17:55:55 +02:00
parent 557d986cbb
commit bd33c33227

View File

@@ -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);
}