mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-06 19:55:32 +00:00
plist: Add safety check to avoid going over 4294967295 for prefix-list
This commit is contained in:
parent
7e678379ed
commit
fbc7ead79c
@ -396,7 +396,7 @@ static int64_t prefix_new_seq_get(struct prefix_list *plist)
|
||||
|
||||
newseq = ((maxseq / 5) * 5) + 5;
|
||||
|
||||
return newseq;
|
||||
return (newseq > UINT_MAX) ? UINT_MAX : newseq;
|
||||
}
|
||||
|
||||
/* Return prefix list entry which has same seq number. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user