diff options
author | Eivind Eklund <eivind@FreeBSD.org> | 1999-12-21 11:14:12 +0000 |
---|---|---|
committer | Eivind Eklund <eivind@FreeBSD.org> | 1999-12-21 11:14:12 +0000 |
commit | 369dc8ceb8c9e6db02bee508b6483327dd1995a9 (patch) | |
tree | b06e31ce7f7894dd7f434036bfa49ea3d8f7ede3 /sys/netinet6/udp6_usrreq.c | |
parent | faf052a79e4f457632b0d2cf6fc3c2fd74deec7e (diff) | |
download | src-369dc8ceb8c9e6db02bee508b6483327dd1995a9.tar.gz src-369dc8ceb8c9e6db02bee508b6483327dd1995a9.zip |
Change incorrect NULLs to 0s
Notes
Notes:
svn path=/head/; revision=54952
Diffstat (limited to 'sys/netinet6/udp6_usrreq.c')
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index 30d8a73e4aa1..137c3eeac9d6 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -226,7 +226,7 @@ udp6_input(mp, offp, proto) */ last = NULL; LIST_FOREACH(in6p, &udb, inp_list) { - if ((in6p->inp_vflag & INP_IPV6) == NULL) + if ((in6p->inp_vflag & INP_IPV6) == 0) continue; if (in6p->in6p_lport != uh->uh_dport) continue; @@ -407,6 +407,7 @@ udp6_ctlinput(cmd, sa, d) sa->sa_len != sizeof(struct sockaddr_in6)) return; + off = 0; if (!PRC_IS_REDIRECT(cmd) && ((unsigned)cmd >= PRC_NCMDS || inet6ctlerrmap[cmd] == 0)) return; @@ -665,7 +666,7 @@ udp6_bind(struct socket *so, struct sockaddr *nam, struct proc *p) inp->inp_vflag &= ~INP_IPV4; inp->inp_vflag |= INP_IPV6; - if (ip6_mapped_addr_on && (inp->inp_flags & IN6P_BINDV6ONLY) == NULL) { + if (ip6_mapped_addr_on && (inp->inp_flags & IN6P_BINDV6ONLY) == 0) { struct sockaddr_in6 *sin6_p; sin6_p = (struct sockaddr_in6 *)nam; @@ -714,7 +715,7 @@ udp6_connect(struct socket *so, struct sockaddr *nam, struct proc *p) s = splnet(); error = in_pcbconnect(inp, (struct sockaddr *)&sin, p); splx(s); - if (error == NULL) { + if (error == 0) { inp->inp_vflag |= INP_IPV4; inp->inp_vflag &= ~INP_IPV6; soisconnected(so); @@ -733,7 +734,7 @@ udp6_connect(struct socket *so, struct sockaddr *nam, struct proc *p) (htonl(ip6_flow_seq++) & IPV6_FLOWLABEL_MASK); } splx(s); - if (error == NULL) { + if (error == 0) { if (ip6_mapped_addr_on) { /* should be non mapped addr */ inp->inp_vflag &= ~INP_IPV4; inp->inp_vflag |= INP_IPV6; |