sbspace: size of bleft, mleft must match sockbuf fields to avoid

overflow on amd64

Submitted by:	anshukla@juniper.net
Obtained from:	Juniper Networks
This commit is contained in:
Simon J. Gerraty 2015-02-13 23:19:35 +00:00
parent c4a0c62ce8
commit d8337a6b4b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278729

View File

@ -212,7 +212,7 @@ sbused(struct sockbuf *sb)
static inline long
sbspace(struct sockbuf *sb)
{
long bleft, mleft;
int bleft, mleft; /* size should match sockbuf fields */
#if 0
SOCKBUF_LOCK_ASSERT(sb);