Fix sysctl_ifmalist() broken in r265019.

Reported by:	Olivier Cochard-Labbé
MFC with:	r265019
This commit is contained in:
Alexander V. Chernikov 2014-05-03 17:57:06 +00:00
parent 972ed56a33
commit c9f98940b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265283

View File

@ -1741,7 +1741,7 @@ sysctl_ifmalist(int af, struct walkarg *w)
info.rti_info[RTAX_GATEWAY] =
(ifma->ifma_addr->sa_family != AF_LINK) ?
ifma->ifma_lladdr : NULL;
error = rtsock_msg_buffer(RTM_NEWADDR, &info, w, &len);
error = rtsock_msg_buffer(RTM_NEWMADDR, &info, w, &len);
if (error != 0)
goto done;
if (w->w_req && w->w_tmem) {