diff options
author | phk <phk@FreeBSD.org> | 2002-09-18 19:44:14 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-18 19:44:14 +0000 |
commit | 63d87674c83d54fccca1aacdd2cb1c827796d834 (patch) | |
tree | 80e29b0b20f950540c3d00897b86679074fa456b /sys/netsmb | |
parent | 369ca07115f3e95429a31404e4fd6ffeddc8dc48 (diff) | |
download | FreeBSD-src-63d87674c83d54fccca1aacdd2cb1c827796d834.zip FreeBSD-src-63d87674c83d54fccca1aacdd2cb1c827796d834.tar.gz |
Use m_length() instead of home-rolled versions.
Diffstat (limited to 'sys/netsmb')
-rw-r--r-- | sys/netsmb/smb_rq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/netsmb/smb_rq.c b/sys/netsmb/smb_rq.c index 23d9e61..9eff2d5 100644 --- a/sys/netsmb/smb_rq.c +++ b/sys/netsmb/smb_rq.c @@ -421,9 +421,7 @@ smb_t2_placedata(struct mbuf *mtop, u_int16_t offset, u_int16_t count, m0 = m_split(mtop, offset, M_TRYWAIT); if (m0 == NULL) return EBADRPC; - for(len = 0, m = m0; m->m_next; m = m->m_next) - len += m->m_len; - len += m->m_len; + len = m_length(m0, &m); m->m_len -= len - count; if (mdp->md_top == NULL) { md_initm(mdp, m0); |