diff options
author | Daniel Hoffend <dh@dotlan.net> | 2016-07-24 00:15:57 +0200 |
---|---|---|
committer | Daniel Hoffend <dh@dotlan.net> | 2016-07-24 00:15:57 +0200 |
commit | 4aaf38742563c427b42a813387d84246ff20a2f2 (patch) | |
tree | 4a23b558c34d288c1a34fd67bd5a02fc1172af83 /src/etc/inc/gwlb.inc | |
parent | a869a9312626caf2bfa34cadb5a07de5ccb043b6 (diff) | |
download | pfsense-4aaf38742563c427b42a813387d84246ff20a2f2.zip pfsense-4aaf38742563c427b42a813387d84246ff20a2f2.tar.gz |
dpinger: fixed check for pidfile length #6505
Diffstat (limited to 'src/etc/inc/gwlb.inc')
-rw-r--r-- | src/etc/inc/gwlb.inc | 2 |
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']; |