FreeBSD Bugzilla – Attachment 5436 Details for
Bug 12996
ifconf in sys/net/if.c returns larger buffer than filled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
Reinier Bezuidenhout
on 1999-08-06 08:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Reinier Bezuidenhout
Created:
1999-08-06 08:20:01 UTC
Size:
1.04 KB
patch
obsolete
>*** 857,862 **** >--- 857,864 ---- > sizeof (ifr)); > ifrp++; > } else { >+ /* keep the value of unused space so far */ >+ unused = space; > space -= sa->sa_len - sizeof(*sa); > if (space < sizeof (ifr)) > break; >*************** >*** 871,879 **** > if (error) > break; > space -= sizeof (ifr); > } > } >! ifc->ifc_len -= space; > return (error); > } > >--- 873,883 ---- > if (error) > break; > space -= sizeof (ifr); >+ /* reset the unused space to zero */ >+ unused = 0; > } > } >! ifc->ifc_len -= space + unused; > return (error); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12996
:
5435
| 5436