If neither a Quagga.conf or <protocol>.conf exist, then
still start the daemon. Assume that configuration is coming
shortly
Ticket: CM-9714
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by:
{
ret = stat (integrate_default, &conf_stat);
if (ret >= 0)
- return;
+ goto tmp_free_and_out;
}
#endif /* VTYSH */
confp = fopen (config_default_dir, "r");
else
{
fprintf (stderr, "can't open configuration file [%s]\n",
- config_default_dir);
- exit (1);
+ config_default_dir);
+ goto tmp_free_and_out;
}
}
else
fclose (confp);
host_config_set (fullpath);
-
+
+tmp_free_and_out:
if (tmp)
XFREE (MTYPE_TMP, fullpath);
}