diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-04-11 08:33:16 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-04-11 08:33:16 +0000 |
commit | 61eea4ebd40cd7120bb472acc3f79d27dd6cdf07 (patch) | |
tree | 7dff24d1a311e1f7ad4c71b87fde0c5b86c23cbd /usr.sbin/bgpd | |
parent | 9286bbc363201b9d8954a29e96b90041eb4a2b31 (diff) |
Use != NULL for pointer check. No binary change.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/session.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 769fa2d9bb9..e0f8afebdc4 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.469 2024/04/10 09:05:32 claudio Exp $ */ +/* $OpenBSD: session.c,v 1.470 2024/04/11 08:33:15 claudio Exp $ */ /* * Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org> @@ -1257,10 +1257,10 @@ get_alternate_addr(struct bgpd_addr *local, struct bgpd_addr *remote, continue; if (sa_equal(local, match->ifa_addr)) { if (match->ifa_flags & IFF_POINTOPOINT && - match->ifa_dstaddr) { + match->ifa_dstaddr != NULL) { if (sa_equal(remote, match->ifa_dstaddr)) connected = 1; - } else if (match->ifa_netmask) { + } else if (match->ifa_netmask != NULL) { plen = mask2prefixlen( match->ifa_addr->sa_family, match->ifa_netmask); |