summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2016-07-24 00:15:57 +0200
committerRenato Botelho <renato@netgate.com>2016-08-01 18:42:45 -0300
commit9543affb27843f437d7346466632526aca160495 (patch)
treeee470c86e3633538fde44fb8a0cd8fb12b5e03eb /src
parent7fa323084c6528e607795617bac994e00afedf3c (diff)
downloadpfsense-9543affb27843f437d7346466632526aca160495.zip
pfsense-9543affb27843f437d7346466632526aca160495.tar.gz
dpinger: fixed check for pidfile length #6505
(cherry picked from commit 4aaf38742563c427b42a813387d84246ff20a2f2)
Diffstat (limited to 'src')
-rw-r--r--src/etc/inc/gwlb.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index bcfd7cc..fd399f8 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -132,7 +132,7 @@ function start_dpinger($gateway) {
$prefix = "{$g['varrun_path']}/dpinger_{$gateway['name']}~" .
"{$gateway['gwifip']}~{$gateway['monitor']}";
# dpinger socket path should not be longer then uaddr.sun_path
- if (strlen($pidfile) > 95) {
+ if (strlen($prefix) > 95) {
$prefix = "{$g['varrun_path']}/dpinger_{$gateway['name']}~" .
substr(md5($gateway['gwifip']),0,8) . "~" .
$gateway['monitor'];
OpenPOWER on IntegriCloud