mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-12 11:18:59 +00:00
nhrp: fix assertion with negative holding times
Correctly reset status or we later assert at nhrp_cache_free(). Signed-off-by: Jorge Boncompte <jbonor@gmail.com>
This commit is contained in:
parent
a1f1bab0fb
commit
45c8b07a35
@ -289,7 +289,7 @@ int nhrp_cache_update_binding(struct nhrp_cache *c, enum nhrp_cache_type type, i
|
||||
if (holding_time > 0)
|
||||
c->new.expires = monotime(NULL) + holding_time;
|
||||
else if (holding_time < 0)
|
||||
c->new.type = NHRP_CACHE_INVALID;
|
||||
nhrp_cache_reset_new(c);
|
||||
|
||||
if (c->new.type == NHRP_CACHE_INVALID ||
|
||||
c->new.type >= NHRP_CACHE_STATIC ||
|
||||
|
Loading…
Reference in New Issue
Block a user