mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-23 06:35:49 -07:00
ensure string is null terminated
This commit is contained in:
parent
d527770102
commit
1ef04a18c3
1 changed files with 1 additions and 0 deletions
|
@ -429,6 +429,7 @@ bool NetworkConfig::fromDictionary(const Dictionary<ZT_NETWORKCONFIG_DICT_CAPACI
|
||||||
this->ssoProvider[sizeof(this->ssoProvider) - 1] = 0;
|
this->ssoProvider[sizeof(this->ssoProvider) - 1] = 0;
|
||||||
} else {
|
} else {
|
||||||
strncpy(this->ssoProvider, "default", sizeof(this->ssoProvider));
|
strncpy(this->ssoProvider, "default", sizeof(this->ssoProvider));
|
||||||
|
this->ssoProvider[sizeof(this->ssoProvider) - 1] = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this->authenticationURL[0] = 0;
|
this->authenticationURL[0] = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue