diff options
author | kn <kn@cvs.openbsd.org> | 2018-10-15 21:15:36 +0000 |
---|---|---|
committer | kn <kn@cvs.openbsd.org> | 2018-10-15 21:15:36 +0000 |
commit | 8e2a7700aa87f6457d8fd7eda1b74690ac6cf810 (patch) | |
tree | bbd72fe6f130a761dcbac1bee62bdf9dbec81900 /sys/net | |
parent | 0fdaf18f43e78522ab7e1ba0e80a4886a76517a4 (diff) |
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
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |