From 07665ab5c36e1039723517b8539c09be5ad6dc59 Mon Sep 17 00:00:00 2001 From: mvs Date: Fri, 28 Jul 2023 09:33:16 +0000 Subject: [PATCH] Compare m_pullup(9) return value against NULL instead of 0. --- sys/net/rtsock.c | 4 ++-- 1 file 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"); -- 2.20.1