summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_pcb.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-09-29 04:01:13 +0000
committerrwatson <rwatson@FreeBSD.org>2004-09-29 04:01:13 +0000
commite455dd69f84961133d47cca1588021dfafac9e28 (patch)
tree97f063c6b524f53efa556e46c0b11f1aa9f4d135 /sys/netinet/in_pcb.c
parent7d517d0a4a03696b60cb78f3e4c556657e9773bf (diff)
downloadFreeBSD-src-e455dd69f84961133d47cca1588021dfafac9e28.zip
FreeBSD-src-e455dd69f84961133d47cca1588021dfafac9e28.tar.gz
Assign so_pcb to NULL rather than 0 as it's a pointer.
Spotted by: dwhite
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r--sys/netinet/in_pcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index a793532..ec25655 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -688,7 +688,7 @@ in_pcbdetach(inp)
in_pcbremlists(inp);
if (so) {
SOCK_LOCK(so);
- so->so_pcb = 0;
+ so->so_pcb = NULL;
sotryfree(so);
}
if (inp->inp_options)
OpenPOWER on IntegriCloud