diff options
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/kernel_socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 95273159..05eec596 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -219,9 +219,8 @@ ifm_read (struct if_msghdr *ifm) return -1; } - ifp = if_create (); + ifp = if_create (sdl->sdl_data, sdl->sdl_nlen); - strncpy (ifp->name, sdl->sdl_data, sdl->sdl_nlen); ifp->ifindex = ifm->ifm_index; ifp->flags = ifm->ifm_flags; #if defined(__bsdi__) |