diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-07-28 09:33:17 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-07-28 09:33:17 +0000 |
commit | e95dfcbaecd9caa6a05a5ee5fdec3cf1c8f86dab (patch) | |
tree | 4da7c2b21187003341e3976f63feb6a134a1d38e /sys/net | |
parent | fe58ffedc1ea3432997a9a981add7fa46fbe448c (diff) |
Compare m_pullup(9) return value against NULL instead of 0.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 528cd08a955..d7c5763df5b 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.368 2023/07/27 22:20:51 mvs Exp $ */ +/* $OpenBSD: rtsock.c,v 1.369 2023/07/28 09:33:16 mvs Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -690,7 +690,7 @@ route_output(struct mbuf *m, struct socket *so) u_char vers, type; if (m == NULL || ((m->m_len < sizeof(int32_t)) && - (m = m_pullup(m, sizeof(int32_t))) == 0)) + (m = m_pullup(m, sizeof(int32_t))) == NULL)) return (ENOBUFS); if ((m->m_flags & M_PKTHDR) == 0) panic("route_output"); |