diff options
author | Ermal <eri@pfsense.org> | 2010-03-25 11:07:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-25 11:07:34 +0000 |
commit | 98fe4d812fc9d5278d756cba51728e0cf9d0ab45 (patch) | |
tree | 8d01df7099dd32226147eb25c6aea79c80e21dbc | |
parent | 8c1e6ff7e826be34ae75e55453f58aea2d137dbc (diff) | |
download | pfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.tar.gz pfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.tar.bz2 pfsense-packages-98fe4d812fc9d5278d756cba51728e0cf9d0ab45.zip |
Propperly check return value.
-rw-r--r-- | config/openospfd/openospfd.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/openospfd/openospfd.inc b/config/openospfd/openospfd.inc index a41af0ec..3e3c42cb 100644 --- a/config/openospfd/openospfd.inc +++ b/config/openospfd/openospfd.inc @@ -176,7 +176,9 @@ function ospfd_install_conf() { exec("chmod u+rw /usr/local/etc/ospfd.conf"); // ospfd process running? if so reload, elsewise start. - exec("/usr/local/sbin/ospfctl reload", $rval); + $oarray = array(); + $rval = 0; + exec("/usr/local/sbin/ospfctl reload", , $oarray, $rval); if ($rval != 0) { /* * ospfd isnt actually running as nothing accepted a connection |