summaryrefslogtreecommitdiff
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2022-03-02 21:30:59 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2022-03-02 21:30:59 +0000
commite62f03a59f2094e6545f14732b6fa1b050dac05d (patch)
tree470868fa2819702bd6fbd0c27cb835985f3f2609 /sys/netinet/in_pcb.c
parentf61869b22b08cac9d845f34f6b909e6019c0b0ab (diff)
Use NULL instead of 0 for pointer.
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index a61dafcb180..66864dfa7c0 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in_pcb.c,v 1.257 2022/03/01 23:53:03 bluhm Exp $ */
+/* $OpenBSD: in_pcb.c,v 1.258 2022/03/02 21:30:58 bluhm Exp $ */
/* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */
/*
@@ -740,7 +740,7 @@ in_rtchange(struct inpcb *inp, int errno)
{
if (inp->inp_route.ro_rt) {
rtfree(inp->inp_route.ro_rt);
- inp->inp_route.ro_rt = 0;
+ inp->inp_route.ro_rt = NULL;
/*
* A new route can be allocated the next time
* output is attempted.