Don't return a NULL mbuf from xdrmbuf_getall.
This commit is contained in:
parent
dd07e118d8
commit
6e0ca25e80
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user