mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 21:10:08 +01:00
device/wireguard: fix explicit_bzero() call on peers buffer in link_config()
Correctly warned by coverity.
This commit is contained in:
parent
5b9a848a82
commit
458a2edbb2
1 changed files with 1 additions and 1 deletions
|
|
@ -1467,7 +1467,7 @@ link_config (NMDeviceWireGuard *self,
|
|||
plpeers_len,
|
||||
wg_change_flags);
|
||||
|
||||
nm_explicit_bzero (plpeers, sizeof (plpeers) * plpeers_len);
|
||||
nm_explicit_bzero (plpeers, sizeof (plpeers[0]) * plpeers_len);
|
||||
|
||||
if (r < 0) {
|
||||
NM_SET_OUT (out_failure_reason, NM_DEVICE_STATE_REASON_CONFIG_FAILED);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue