Don't return a NULL mbuf from xdrmbuf_getall.

This commit is contained in:
dfr 2008-11-05 16:24:31 +00:00
parent dd07e118d8
commit 6e0ca25e80

View File

@ -119,7 +119,10 @@ xdrmbuf_getall(XDR *xdrs)
xdrs->x_private = NULL;
}
m_adj(m, xdrs->x_handy);
if (m)
m_adj(m, xdrs->x_handy);
else
MGET(m, M_WAITOK, MT_DATA);
return (m);
}