Commit d9390d1f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Remove duplicate memset in kernel_interface_operational on BSD.

Reported by janus.
parent afdc3e1b
...@@ -311,7 +311,6 @@ kernel_interface_operational(const char *ifname, int ifindex) ...@@ -311,7 +311,6 @@ kernel_interface_operational(const char *ifname, int ifindex)
if(s < 0) if(s < 0)
return -1; return -1;
memset(&req, 0, sizeof(req));
memset(&req, 0, sizeof(req)); memset(&req, 0, sizeof(req));
strncpy(req.ifr_name, ifname, sizeof(req.ifr_name)); strncpy(req.ifr_name, ifname, sizeof(req.ifr_name));
rc = ioctl(s, SIOCGIFFLAGS, &req); rc = ioctl(s, SIOCGIFFLAGS, &req);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment