mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 10:54:56 +00:00
lib: fix garbage array size in zprivs_init
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
parent
1c77d034e5
commit
72de5f4b5d
@ -799,7 +799,7 @@ void zprivs_init(struct zebra_privs_t *zprivs)
|
||||
return;
|
||||
|
||||
if (zprivs->user) {
|
||||
ngroups = sizeof(groups);
|
||||
ngroups = array_size(groups);
|
||||
if (getgrouplist(zprivs->user, zprivs_state.zgid, groups,
|
||||
&ngroups)
|
||||
< 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user