Actions
Bug #2284
closedrc.newwanip handle case when gifs config is null
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/13/2012
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:
Description
If the 'gifs' section of the config is null, then /etc/rc.newwanip logs errors when trying to process the 'gifs' array.
/* Check Gif tunnels */
if($config['gifs']['gif'] != ""){
foreach($config['gifs']['gif'] as $gif) {
The extra "if" statement (middle line above) and a matching "}" further down handles this null case, so that no error is logged in /tmp/PHP_errors.txt
A corrected file is attached.
I think this is new code in 2.1, so othe fix only applies to 2.1
Files
Updated by Jim Pingle about 13 years ago
- Project changed from pfSense Packages to pfSense
Updated by Seth Mos about 13 years ago
- Status changed from New to Resolved
doesn't throw a error for me anymore.
Actions