Reported by Peter J. Philipp.
OK?
Index: sys/netinet/udp_usrreq.c
===================================================================
RCS file: /cvs/src/sys/netinet/udp_usrreq.c,v
retrieving revision 1.260
diff -u -p -u -p -r1.260 udp_usrreq.c
--- sys/netinet/udp_usrreq.c 1 Aug 2020 23:41:56 -0000 1.260
+++ sys/netinet/udp_usrreq.c 5 Aug 2020 20:49:02 -0000
@@ -486,7 +486,7 @@ udp_input(struct mbuf **mp, int *offp, i
inp = in_pcbhashlookup(&udbtable, ip->ip_src, uh->uh_sport,
ip->ip_dst, uh->uh_dport, m->m_pkthdr.ph_rtableid);
}
- if (inp == 0) {
+ if (inp == NULL) {
udpstat_inc(udps_pcbhashmiss);
#ifdef INET6
if (ip6) {
@@ -519,7 +519,7 @@ udp_input(struct mbuf **mp, int *offp, i
}
#endif /*IPSEC */
- if (inp == 0) {
+ if (inp == NULL) {
udpstat_inc(udps_noport);
if (m->m_flags & (M_BCAST | M_MCAST)) {
udpstat_inc(udps_noportbcast);