Don't return a NULL mbuf from xdrmbuf_getall.

This commit is contained in:
Doug Rabson 2008-11-05 16:24:31 +00:00
parent faecfd5641
commit e3c56574b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184692

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