diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-04 12:32:31 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-01-04 12:32:31 +0000 |
commit | e959d4c749cdf3fb5195096bf418ffdab0489047 (patch) | |
tree | bcb2a766f02e8f594adb7f3d4eece4a3451147fe /sbin | |
parent | 87d5cc232166ac95db59000f58274249a23884d2 (diff) |
check (p != NULL), not n.
dhartmei@ ok
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 5a598cfda01..943a782aaa8 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.56 2001/12/10 18:08:12 dhartmei Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.57 2002/01/04 12:32:30 mpech Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -369,7 +369,7 @@ print_nat(struct pf_nat *n) } if (n->proto) { struct protoent *p = getprotobynumber(n->proto); - if (n != NULL) + if (p != NULL) printf("proto %s ", p->p_name); else printf("proto %u ", n->proto); |