Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/tcpdchk Pass NULL for checking only



details:   https://anonhg.NetBSD.org/src/rev/fa40ff71815e
branches:  trunk
changeset: 472831:fa40ff71815e
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 09 16:07:20 1999 +0000

description:
Pass NULL for checking only

diffstat:

 usr.sbin/tcpdchk/tcpdchk.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 4e004dc74672 -r fa40ff71815e usr.sbin/tcpdchk/tcpdchk.c
--- a/usr.sbin/tcpdchk/tcpdchk.c        Sun May 09 16:05:35 1999 +0000
+++ b/usr.sbin/tcpdchk/tcpdchk.c        Sun May 09 16:07:20 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcpdchk.c,v 1.6 1999/05/09 16:05:35 christos Exp $     */
+/*     $NetBSD: tcpdchk.c,v 1.7 1999/05/09 16:07:20 christos Exp $     */
 
  /*
   * tcpdchk - examine all tcpd access control rules and inetd.conf entries
@@ -21,7 +21,7 @@
 #if 0
 static char sccsid[] = "@(#) tcpdchk.c 1.7 96/02/11 17:01:34";
 #else
-__RCSID("$NetBSD: tcpdchk.c,v 1.6 1999/05/09 16:05:35 christos Exp $");
+__RCSID("$NetBSD: tcpdchk.c,v 1.7 1999/05/09 16:07:20 christos Exp $");
 #endif
 #endif
 
@@ -421,7 +421,6 @@
 {
     char   *mask;
     int     addr_count = 1;
-    struct in_addr dummy;
 
     if (pat[0] == '@') {                       /* @netgroup */
 #ifdef NO_NETGRENT
@@ -441,8 +440,8 @@
 #endif
 #endif
     } else if ((mask = split_at(pat, '/')) != NULL) {  /* network/netmask */
-       if (dot_quad_addr(pat, &dummy) != 0
-           || dot_quad_addr(mask, &dummy) != 0)
+       if (dot_quad_addr(pat, NULL) != 0
+           || dot_quad_addr(mask, NULL) != 0)
            tcpd_warn("%s/%s: bad net/mask pattern", pat, mask);
     } else if (STR_EQ(pat, "FAIL")) {          /* obsolete */
        tcpd_warn("FAIL is no longer recognized");



Home | Main Index | Thread Index | Old Index