From 8e2a7700aa87f6457d8fd7eda1b74690ac6cf810 Mon Sep 17 00:00:00 2001 From: kn Date: Mon, 15 Oct 2018 21:15:36 +0000 Subject: use PFR_RB_NONE consistently Replace hardcoded 0 and implicit checks with enum as done in all other use cases of `pfra_fback'. No object change. OK sashan --- sys/net/pf_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/pf_table.c b/sys/net/pf_table.c index dc264a2b335..e5a39057307 100644 --- a/sys/net/pf_table.c +++ b/sys/net/pf_table.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_table.c,v 1.128 2018/03/28 10:56:18 sashan Exp $ */ +/* $OpenBSD: pf_table.c,v 1.129 2018/10/15 21:15:35 kn Exp $ */ /* * Copyright (c) 2002 Cedric Berger @@ -741,7 +741,7 @@ pfr_validate_addr(struct pfr_addr *ad) return (-1); if (ad->pfra_not && ad->pfra_not != 1) return (-1); - if (ad->pfra_fback) + if (ad->pfra_fback != PFR_FB_NONE) return (-1); if (ad->pfra_type >= PFRKE_MAX) return (-1); -- cgit v1.2.3