diff options
Diffstat (limited to 'apps/netutils/uiplib/uip_getmacaddr.c')
-rw-r--r-- | apps/netutils/uiplib/uip_getmacaddr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/netutils/uiplib/uip_getmacaddr.c b/apps/netutils/uiplib/uip_getmacaddr.c index f4f01a7f3..e0f72f4a7 100644 --- a/apps/netutils/uiplib/uip_getmacaddr.c +++ b/apps/netutils/uiplib/uip_getmacaddr.c @@ -44,6 +44,7 @@ #include <sys/ioctl.h> #include <stdint.h> #include <string.h> +#include <unistd.h> #include <errno.h> #include <netinet/in.h> @@ -96,6 +97,7 @@ int uip_getmacaddr(const char *ifname, uint8_t *macaddr) memcpy(macaddr, &req.ifr_hwaddr.sa_data, IFHWADDRLEN); } + close(sockfd); } } return ret; |