diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-12-29 16:24:43 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2004-12-29 16:24:43 +0000 |
commit | 90e70c60b63df56a90ed00fdb6d170df9adf5e46 (patch) | |
tree | 504db8695eb4acfec95509b2219f08eeb6d941fa | |
parent | 4cadf3489d0675c00aaaa6c2fb27f7670029f153 (diff) |
Make sure that fingerprint_count gets reset to 0 correctly when we flush
our list of fingerprints.
ok dhartmei@ henning@ frantzen@
-rw-r--r-- | sbin/pfctl/pfctl_osfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_osfp.c b/sbin/pfctl/pfctl_osfp.c index 46b9306d2f5..2aa55b528b7 100644 --- a/sbin/pfctl/pfctl_osfp.c +++ b/sbin/pfctl/pfctl_osfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_osfp.c,v 1.10 2004/12/19 13:27:50 deraadt Exp $ */ +/* $OpenBSD: pfctl_osfp.c,v 1.11 2004/12/29 16:24:42 mcbride Exp $ */ /* * Copyright (c) 2003 Mike Frantzen <frantzen@openbsd.org> @@ -276,9 +276,9 @@ pfctl_flush_my_fingerprints(struct name_list *list) while ((nm = LIST_FIRST(list)) != NULL) { LIST_REMOVE(nm, nm_entry); pfctl_flush_my_fingerprints(&nm->nm_sublist); - fingerprint_count--; free(nm); } + fingerprint_count = 0; class_count = 0; } |