diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 17:23:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-03 17:23:54 +0000 |
commit | 1e292fc1a900657ba95898d04e3ed87b1c7ee365 (patch) | |
tree | a6ba40a126e1cbab21ad9b5ad44223596e827469 /etc/inc | |
parent | 2711dca00f05bbb10d8a97c1e0e8fe5bbce6a356 (diff) | |
download | pfsense-1e292fc1a900657ba95898d04e3ed87b1c7ee365.zip pfsense-1e292fc1a900657ba95898d04e3ed87b1c7ee365.tar.gz |
Be more careful with MTU value. Extract the integer value and ensure the item IS a integer before using the value.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/filter.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 4124926..1715346 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -85,8 +85,8 @@ function filter_configure() { $wanif = get_real_wan_interface(); /* set up MSS clamping */ - if ($config['interfaces']['wan']['mtu'] <> "") - $mssclamp = "max-mss " . $config['interfaces']['wan']['mtu'] - 40; + if ($config['interfaces']['wan']['mtu'] <> "" and is_integer($config['interfaces']['wan']['mtu'])) + $mssclamp = "max-mss " . (intval($config['interfaces']['wan']['mtu'] - 40)); else if ($config['interfaces']['wan']['ipaddr'] == "pppoe") $mssclamp = "max-mss 1452"; else |