diff options
author | bz <bz@FreeBSD.org> | 2015-09-21 12:53:26 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2015-09-21 12:53:26 +0000 |
commit | 34885c76098231052ff6cffc69c2a86cad253338 (patch) | |
tree | 015c5697fa5f4d39ac9ecb676d997e6c8213420e /sys/netinet6 | |
parent | 3e1ba7cafdfe86d0cb2fc084b9f3bc17af83a65e (diff) | |
download | FreeBSD-src-34885c76098231052ff6cffc69c2a86cad253338.zip FreeBSD-src-34885c76098231052ff6cffc69c2a86cad253338.tar.gz |
Compare mbuf pointer to NULL rather than to 0.
No functional change.
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/udp6_usrreq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/udp6_usrreq.c b/sys/netinet6/udp6_usrreq.c index e39db6c..375c00d 100644 --- a/sys/netinet6/udp6_usrreq.c +++ b/sys/netinet6/udp6_usrreq.c @@ -788,7 +788,7 @@ udp6_output(struct inpcb *inp, struct mbuf *m, struct sockaddr *addr6, * for UDP and IP6 headers. */ M_PREPEND(m, hlen + sizeof(struct udphdr), M_NOWAIT); - if (m == 0) { + if (m == NULL) { error = ENOBUFS; goto release; } |