From: claudio Date: Thu, 11 Apr 2024 08:33:15 +0000 (+0000) Subject: Use != NULL for pointer check. No binary change. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=02c3cfbc8cef1effb04f9d6806f3b4c472f911af;p=openbsd Use != NULL for pointer check. No binary change. --- 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 @@ -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);