]> CyberLeo.Net >> Repos - FreeBSD/releng/8.2.git/commit
MFC: r217242
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 20 Jan 2011 00:54:12 +0000 (00:54 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 20 Jan 2011 00:54:12 +0000 (00:54 +0000)
commitd7692239c73a35815947f64195b013557873cc87
tree61fe5fd2f731f6821b47f7a436d6d1cab8e96809
parent56d3c3edd58e1d020a87818b90379a1a4c2cf783
MFC: r217242
Fix a bug in the client side krpc where it was, sometimes
erroneously, assumed that 4 bytes of data were in the first
mbuf of a list by replacing the bcopy() with m_copydata().
Also, replace the uses of m_pullup(), which can fail for
reasons other than not enough data, with m_copydata().
For the cases where it isn't known that there is enough
data in the mbuf list, check first via m_len and m_length().
This is believed to fix a problem reported by dpd at dpdtech.com
and george+freebsd at m5p.com.

Reviewed by: jhb (for head)
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/8.2@217617 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/rpc/clnt_dg.c
sys/rpc/clnt_vc.c
sys/rpc/svc_vc.c