Fix sysctl_ifmalist() broken in r265019.

Reported by:	Olivier Cochard-Labbé
MFC with:	r265019
This commit is contained in:
melifaro 2014-05-03 17:57:06 +00:00
parent bb33a54f34
commit 1f938512ab

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) {