diff options
author | jim-p <jimp@pfsense.org> | 2010-06-15 16:26:04 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-15 16:26:58 -0400 |
commit | 1e357c00bdf6165ccea04cc8d02ed5160ec68ddd (patch) | |
tree | f4fee69dfc096d1d402079c3540f65dda1fb531c /etc | |
parent | 3bb6bfd2f22d31b986c663bfd376168c4d144256 (diff) | |
download | pfsense-1e357c00bdf6165ccea04cc8d02ed5160ec68ddd.zip pfsense-1e357c00bdf6165ccea04cc8d02ed5160ec68ddd.tar.gz |
Add a safety check to prevent packets like those in #479 from breaking the filter log in the GUI.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter_log.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/filter_log.inc b/etc/inc/filter_log.inc index 3005d8c..f5eb3af 100644 --- a/etc/inc/filter_log.inc +++ b/etc/inc/filter_log.inc @@ -150,6 +150,8 @@ function parse_filter_line($line) { if ($flent['proto'] == "TCP") { $flags = split('[\, ]', $leftovers); $flent['tcpflags'] = str_replace(".", "A", substr($flags[1], 1, -1)); + } elseif ($flent['proto'] == "Options") { + $flent['proto'] = "none"; } /* If there is a src, a dst, and a time, then the line should be usable/good */ |