From 4aaf38742563c427b42a813387d84246ff20a2f2 Mon Sep 17 00:00:00 2001 From: Daniel Hoffend Date: Sun, 24 Jul 2016 00:15:57 +0200 Subject: dpinger: fixed check for pidfile length #6505 --- src/etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']; -- cgit v1.1