Compare mbuf pointer to NULL rather than to 0.

No functional change.

MFC after:	2 weeks
This commit is contained in:
Bjoern A. Zeeb 2015-09-21 12:53:26 +00:00
parent b1ce89f2bc
commit 7af7c754e4

View file

@ -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;
}