diff options
author | jim-p <jimp@pfsense.org> | 2012-05-24 16:33:59 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-05-24 16:33:59 -0400 |
commit | a6222c0378d71ae352da45150ca0ed6681a327f2 (patch) | |
tree | 3ea68a1cd83cf4ec6759332375c45310195b297d /etc/inc/ipsec.inc | |
parent | 310ce280c166fa1fb76d5fa73bcddcaebb37f8c8 (diff) | |
download | pfsense-a6222c0378d71ae352da45150ca0ed6681a327f2.zip pfsense-a6222c0378d71ae352da45150ca0ed6681a327f2.tar.gz |
Test for empty here, rather than !, so a blank value (as from mobile clients) doesn't fall to the other tests.
Diffstat (limited to 'etc/inc/ipsec.inc')
-rw-r--r-- | etc/inc/ipsec.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/ipsec.inc b/etc/inc/ipsec.inc index a64f1de..381c1c6 100644 --- a/etc/inc/ipsec.inc +++ b/etc/inc/ipsec.inc @@ -152,7 +152,7 @@ function ipsec_get_phase1_src(& $ph1ent) { */ function ipsec_get_phase1_dst(& $ph1ent) { global $g; - if (!$ph1ent['remote-gateway']) + if (empty($ph1ent['remote-gateway'])) return false; $rg = $ph1ent['remote-gateway']; if (!is_ipaddr($rg)) { |