summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>2002-08-28 15:43:02 +0000
committerpefo <pefo@openbsd.org>2002-08-28 15:43:02 +0000
commit3df4938f0d1e666ada951c144459a2ad52e578f4 (patch)
treeaa711033b4db5fc741360fdfb1dbed88b5cdbdd3 /sys/netinet/udp_usrreq.c
parento) start new sentence on a new line; (diff)
downloadwireguard-openbsd-3df4938f0d1e666ada951c144459a2ad52e578f4.tar.xz
wireguard-openbsd-3df4938f0d1e666ada951c144459a2ad52e578f4.zip
Fix a problem where passing NULL as a pointer with varargs does not promote
NULL to full 64 bits on a 64 bit address system. Soultion is to add a (void *) cast before NULL. This makes a 64 bit MIPS kernel work and will probably help future 64 bit ports as well. OK from art@
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 342c9551339..094fcdbc17b 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp_usrreq.c,v 1.85 2002/08/19 02:31:02 itojun Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.86 2002/08/28 15:43:03 pefo Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
@@ -970,7 +970,7 @@ udp_output(struct mbuf *m, ...)
udpstat.udps_opackets++;
error = ip_output(m, inp->inp_options, &inp->inp_route,
inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST),
- inp->inp_moptions, inp, NULL);
+ inp->inp_moptions, inp, (void *)NULL);
bail:
if (addr) {