From d7b9b072229d3fa7d46917b9a76d1e70a60362d1 Mon Sep 17 00:00:00 2001 From: scottl Date: Sat, 26 Jul 2003 07:23:24 +0000 Subject: Guard against MLEN growing larger than a uint8_t due to MSIZE grwoing to a value of 512 in LINT. This keeps gcc from complaining. --- sys/kern/uipc_sockbuf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/kern/uipc_sockbuf.c') diff --git a/sys/kern/uipc_sockbuf.c b/sys/kern/uipc_sockbuf.c index b0d366a..6feeb91 100644 --- a/sys/kern/uipc_sockbuf.c +++ b/sys/kern/uipc_sockbuf.c @@ -626,8 +626,10 @@ sbappendaddr(sb, asa, m0, control) space += m_length(control, &n); if (space > sbspace(sb)) return (0); +#if MSIZE <= 256 if (asa->sa_len > MLEN) return (0); +#endif MGET(m, M_DONTWAIT, MT_SONAME); if (m == 0) return (0); -- cgit v1.1