From b85fee0718d37e8da27ab2530e311cf5ac6d7434 Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 10 Jul 2012 12:05:51 -0400 Subject: Add some require_once bits here to ensure functions being called are present for all code paths. --- config/openbgpd/openbgpd.inc | 3 +++ config/openospfd/openospfd.inc | 3 +++ config/quagga_ospfd/quagga_ospfd.inc | 3 +++ 3 files changed, 9 insertions(+) diff --git a/config/openbgpd/openbgpd.inc b/config/openbgpd/openbgpd.inc index b8cfbe2a..4a99dbc1 100644 --- a/config/openbgpd/openbgpd.inc +++ b/config/openbgpd/openbgpd.inc @@ -28,6 +28,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +require_once("config.inc"); +require_once("functions.inc"); +require_once("service-utils.inc"); define('PKG_BGPD_CONFIG_BASE', '/var/etc/openbgpd'); diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc index bea9bf20..bc8826e1 100644 --- a/config/openospfd/openospfd.inc +++ b/config/openospfd/openospfd.inc @@ -26,6 +26,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +require_once("config.inc"); +require_once("functions.inc"); +require_once("service-utils.inc"); function ospfd_display_friendlyiface () { global $evaledvar, $config, $g; diff --git a/config/quagga_ospfd/quagga_ospfd.inc b/config/quagga_ospfd/quagga_ospfd.inc index 40d73786..d81ee3dc 100644 --- a/config/quagga_ospfd/quagga_ospfd.inc +++ b/config/quagga_ospfd/quagga_ospfd.inc @@ -27,6 +27,9 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +require_once("config.inc"); +require_once("functions.inc"); +require_once("service-utils.inc"); define('PKG_QUAGGA_CONFIG_BASE', '/var/etc/quagga'); -- cgit v1.2.3