diff options
author | bp <bp@FreeBSD.org> | 2001-08-21 08:21:03 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2001-08-21 08:21:03 +0000 |
commit | a333ea9b9dceedf97cd348f13d9ec4dcb3cfa6b3 (patch) | |
tree | fbbd03ce4c453193c71899caa9edac09afe29dda /sys/netsmb/smb_rq.c | |
parent | 25408786543e98c719cf589a98202c36687c64ab (diff) | |
download | FreeBSD-src-a333ea9b9dceedf97cd348f13d9ec4dcb3cfa6b3.zip FreeBSD-src-a333ea9b9dceedf97cd348f13d9ec4dcb3cfa6b3.tar.gz |
Use proper endian conversions.
Obtained from: Mac OS X
MFC after: 1 week
Diffstat (limited to 'sys/netsmb/smb_rq.c')
-rw-r--r-- | sys/netsmb/smb_rq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netsmb/smb_rq.c b/sys/netsmb/smb_rq.c index 9b105bc..1a56943 100644 --- a/sys/netsmb/smb_rq.c +++ b/sys/netsmb/smb_rq.c @@ -238,7 +238,7 @@ smb_rq_bend(struct smb_rq *rqp) bcnt = rqp->sr_rq.mb_count; if (bcnt > 0xffff) SMBERROR("byte count too large (%d)\n", bcnt); - *rqp->sr_bcount = bcnt; + *rqp->sr_bcount = htoles(bcnt); } int |