From 80d751401068ad4c7aecd792fa9fd5f8e0596449 Mon Sep 17 00:00:00 2001 From: cy Date: Sat, 8 Jun 2019 22:27:09 +0000 Subject: [PATCH] MFC r348311: Fix indentation and while at it simplfy the code. Reported by: lwhsu@ Approved by: re (gjb@) --- sys/contrib/ipfilter/netinet/fil.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c index 8334d7e71e5..6fd4e7ba632 100644 --- a/sys/contrib/ipfilter/netinet/fil.c +++ b/sys/contrib/ipfilter/netinet/fil.c @@ -4982,16 +4982,16 @@ frrequest(softc, unit, req, data, set, makecopy) error = ipf_outobj(softc, data, fp, IPFOBJ_FRENTRY); if (error == 0) { - if ((f->fr_dsize != 0) && (uptr != NULL)) + if ((f->fr_dsize != 0) && (uptr != NULL)) { error = COPYOUT(f->fr_data, uptr, f->fr_dsize); - if (error != 0) { + if (error == 0) { + f->fr_hits = 0; + f->fr_bytes = 0; + } else { IPFERROR(28); error = EFAULT; } - if (error == 0) { - f->fr_hits = 0; - f->fr_bytes = 0; } } } -- 2.45.0