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:
parent
aeadda3794
commit
6e75dab1c9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user