summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Hoffend <dh@dotlan.net>2016-07-24 00:15:57 +0200
committerDaniel Hoffend <dh@dotlan.net>2016-07-24 00:15:57 +0200
commit4aaf38742563c427b42a813387d84246ff20a2f2 (patch)
tree4a23b558c34d288c1a34fd67bd5a02fc1172af83 /src
parenta869a9312626caf2bfa34cadb5a07de5ccb043b6 (diff)
downloadpfsense-4aaf38742563c427b42a813387d84246ff20a2f2.zip
pfsense-4aaf38742563c427b42a813387d84246ff20a2f2.tar.gz
dpinger: fixed check for pidfile length #6505
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 3c58fc5..a71b0e4 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -100,7 +100,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