mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-19 21:03:57 -07:00
Clear ifname buffer before copying to it
This commit is contained in:
parent
67c2336176
commit
a56ffc6a0b
1 changed files with 1 additions and 0 deletions
|
@ -470,6 +470,7 @@ class Binder {
|
|||
if (_bindingCount < ZT_BINDER_MAX_BINDINGS) {
|
||||
_bindings[_bindingCount].udpSock = udps;
|
||||
_bindings[_bindingCount].address = ii->first;
|
||||
memset(_bindings[_bindingCount].ifname, 0x0, ZT_MAX_PHYSIFNAME);
|
||||
memcpy(_bindings[_bindingCount].ifname, (char*)ii->second.c_str(), (int)ii->second.length());
|
||||
++_bindingCount;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue