summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-05-24 16:33:59 -0400
committerjim-p <jimp@pfsense.org>2012-05-24 16:36:11 -0400
commitfd97f40c353fababcfa2ddf63152dbbedbe1f014 (patch)
treecdb71c70f0e32c5e79913501b85cc0a5ccc52807 /etc
parent90d4bccda7706ec1484b6f42095a0adbcc2f95f8 (diff)
downloadpfsense-fd97f40c353fababcfa2ddf63152dbbedbe1f014.zip
pfsense-fd97f40c353fababcfa2ddf63152dbbedbe1f014.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')
-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 07c4869..4ef7db7 100644
--- a/etc/inc/ipsec.inc
+++ b/etc/inc/ipsec.inc
@@ -144,7 +144,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)) {
OpenPOWER on IntegriCloud