diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-08-28 15:43:04 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2002-08-28 15:43:04 +0000 |
commit | c940304939f4c564d83fb87d12af6559d9ccaa49 (patch) | |
tree | 0ed9381dc2c5b67e3df01614aa26f937a8ce9862 /sys/net/pf.c | |
parent | 3f526e41a355a9df6ca3f1c0e2947365f380cbf0 (diff) |
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/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 4a000063ce6..042a7495b07 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.242 2002/08/12 16:41:25 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.243 2002/08/28 15:43:02 pefo Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -1205,7 +1205,8 @@ pf_send_reset(int off, struct tcphdr *th, struct pf_pdesc *pd, int af, h2->ip_sum = 0; h2->ip_len = len; h2->ip_off = ip_mtudisc ? IP_DF : 0; - ip_output(m, NULL, NULL, 0, NULL, NULL); + ip_output(m, (void *)NULL, (void *)NULL, 0, (void *)NULL, + (void *)NULL); break; #endif /* INET */ #ifdef INET6 |