diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-11-02 21:40:30 +0100 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-11-02 21:40:30 +0100 |
commit | 37d8817219220ee69cbca32c98d17aa126cd610d (patch) | |
tree | f35b361c1d63767827aa89fd8f6a6194dab54211 /config/haproxy-devel | |
parent | 326b6876a92ea6034d7b8e6e4920b2d11b1a8981 (diff) | |
download | pfsense-packages-37d8817219220ee69cbca32c98d17aa126cd610d.tar.gz pfsense-packages-37d8817219220ee69cbca32c98d17aa126cd610d.tar.bz2 pfsense-packages-37d8817219220ee69cbca32c98d17aa126cd610d.zip |
haproxy-devel, array safety check
Diffstat (limited to 'config/haproxy-devel')
-rw-r--r-- | config/haproxy-devel/pkg/haproxy.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/haproxy-devel/pkg/haproxy.inc b/config/haproxy-devel/pkg/haproxy.inc index d9f8242e..638ece28 100644 --- a/config/haproxy-devel/pkg/haproxy.inc +++ b/config/haproxy-devel/pkg/haproxy.inc @@ -2074,6 +2074,9 @@ function haproxy_get_transparent_backends(){ global $config; $a_backends = &$config['installedpackages']['haproxy']['ha_pools']['item']; $transparent_backends = array(); + if (!is_array($a_backends)) { + return $transparent_backends; + } foreach ($a_backends as $backend) { if ($backend["transparent_clientip"] != 'yes') { continue; |