Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/blacklist/bin if nfail == -1, allow everything.



details:   https://anonhg.NetBSD.org/src/rev/605a97a3c9b5
branches:  trunk
changeset: 335696:605a97a3c9b5
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Jan 21 19:45:26 2015 +0000

description:
if nfail == -1, allow everything.

diffstat:

 external/bsd/blacklist/bin/blacklistd.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d238e9a50f30 -r 605a97a3c9b5 external/bsd/blacklist/bin/blacklistd.c
--- a/external/bsd/blacklist/bin/blacklistd.c   Wed Jan 21 19:39:25 2015 +0000
+++ b/external/bsd/blacklist/bin/blacklistd.c   Wed Jan 21 19:45:26 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: blacklistd.c,v 1.7 2015/01/21 19:24:03 christos Exp $  */
+/*     $NetBSD: blacklistd.c,v 1.8 2015/01/21 19:45:26 christos Exp $  */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: blacklistd.c,v 1.7 2015/01/21 19:24:03 christos Exp $");
+__RCSID("$NetBSD: blacklistd.c,v 1.8 2015/01/21 19:45:26 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/socket.h>
@@ -166,7 +166,7 @@
                        (*lfun)(LOG_ERR, "rule exists %s", dbi.id);
                        goto out;
                }
-               if (dbi.count >= c.c_nfail) {
+               if (c.c_nfail != -1 && dbi.count >= c.c_nfail) {
                        int res = run_add(&c, &rss, dbi.id, sizeof(dbi.id));
                        if (res == -1)
                                goto out;



Home | Main Index | Thread Index | Old Index