struct dirent *e is freed when calling closedir(). Use ifname instead.
Type: fix
Change-Id: Icc9ca52c33ecc1dee7a9e28802149e4e3e4c8ac0
Signed-off-by: Benoît Ganne <bganne@cisco.com>
if (ifr.ifr_flags & IFF_UP)
{
- error = clib_error_return (0,
- "Skipping VMBUS device %U as host interface %s is up",
- format_vlib_vmbus_addr, addr, e->d_name);
+ error = clib_error_return (
+ 0, "Skipping VMBUS device %U as host interface %s is up",
+ format_vlib_vmbus_addr, addr, ifname);
close (fd);
goto done;
}