Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174237276
D60184.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
650 B
Referenced Files
None
Subscribers
None
D60184.id.diff
View Options
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -266,7 +266,7 @@
{
struct in6_ifreq *ifr = (struct in6_ifreq *)data;
struct in6_ifaddr *ia = NULL;
- struct in6_aliasreq *ifra = (struct in6_aliasreq *)data;
+ struct in6_aliasreq tmpifra, *ifra = (struct in6_aliasreq *)data;
struct sockaddr_in6 *sa6;
int error;
bool control_locked = false;
@@ -276,7 +276,9 @@
*/
if (cmd == OSIOCAIFADDR_IN6) {
cmd = SIOCAIFADDR_IN6;
- ifra->ifra_vhid = 0;
+ ifra = &tmpifra;
+ memset(ifra, 0, sizeof(*ifra));
+ memcpy(ifra, data, sizeof(struct oin6_aliasreq));
}
switch (cmd) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 2, 3:01 PM (10 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40039466
Default Alt Text
D60184.id.diff (650 B)
Attached To
Mode
D60184: netinet6: Fix the OSIOCAIFADDR_IN6 handler
Attached
Detach File
Event Timeline
Log In to Comment