diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-09-29 04:01:13 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-09-29 04:01:13 +0000 |
commit | e455dd69f84961133d47cca1588021dfafac9e28 (patch) | |
tree | 97f063c6b524f53efa556e46c0b11f1aa9f4d135 | |
parent | 7d517d0a4a03696b60cb78f3e4c556657e9773bf (diff) | |
download | FreeBSD-src-e455dd69f84961133d47cca1588021dfafac9e28.zip FreeBSD-src-e455dd69f84961133d47cca1588021dfafac9e28.tar.gz |
Assign so_pcb to NULL rather than 0 as it's a pointer.
Spotted by: dwhite
-rw-r--r-- | sys/netinet/in_pcb.c | 2 |
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) |