summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-02-26 08:41:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-02-26 08:41:44 -0300
commited5f7e9ebd5b00018dc99dc00ea36ce752a90b5b (patch)
treeecd97d7109506f6aabf0857984e50030b4e8da4a /etc/inc
parent29d33eaa00d83e28dd657c5a7704bc28f88c9a42 (diff)
downloadpfsense-ed5f7e9ebd5b00018dc99dc00ea36ce752a90b5b.zip
pfsense-ed5f7e9ebd5b00018dc99dc00ea36ce752a90b5b.tar.gz
When auth algorithm is hmac-sha512, it produces long lines and wrap them, what breaks the parser. Ignore lines that starts with a space to fix it. Fixes #2842
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/ipsec.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc
index 424ace6..6a00244 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -512,7 +512,7 @@ function ipsec_dump_sad()
if ($fd) {
while (!feof($fd)) {
$line = chop(fgets($fd));
- if (!$line)
+ if (!$line || $line[0] == " ")
continue;
if ($line == "No SAD entries.")
break;
OpenPOWER on IntegriCloud