mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
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
c4a0c62ce8
commit
d8337a6b4b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278729
@ -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