mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:13:07 +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;
|
return;
|
||||||
|
|
||||||
if (zprivs->user) {
|
if (zprivs->user) {
|
||||||
ngroups = sizeof(groups);
|
ngroups = array_size(groups);
|
||||||
if (getgrouplist(zprivs->user, zprivs_state.zgid, groups,
|
if (getgrouplist(zprivs->user, zprivs_state.zgid, groups,
|
||||||
&ngroups)
|
&ngroups)
|
||||||
< 0) {
|
< 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user