mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Fix a typo-bug in ipflow_reap that could cause a NULL pointer
dereference. I have also sent this fix to Matt Thomas.
This commit is contained in:
parent
958d6f7fc3
commit
677c9dd6f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36196
@ -33,7 +33,7 @@
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: ip_flow.c,v 1.3 1998/05/19 15:53:47 pb Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -227,7 +227,7 @@ ipflow_reap(
|
||||
* or has had the least uses in the last 1.5
|
||||
* intervals.
|
||||
*/
|
||||
if (ipf == NULL
|
||||
if (maybe_ipf == NULL
|
||||
|| ipf->ipf_timer < maybe_ipf->ipf_timer
|
||||
|| (ipf->ipf_timer == maybe_ipf->ipf_timer
|
||||
&& ipf->ipf_last_uses + ipf->ipf_uses <
|
||||
|
Loading…
Reference in New Issue
Block a user