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:
sjg 2015-02-13 23:19:35 +00:00
parent aeadda3794
commit 6e75dab1c9

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);