mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 21:10:28 +00:00
isisd: circuit is derefed in every code path
No need to check for circuit being null, we have already de-refed it in every code path and would have crashed before this point if it was. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
8396ec6717
commit
b53c5f1ab4
@ -81,8 +81,7 @@ void isis_link_params_update(struct isis_circuit *circuit,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
/* Sanity Check */
|
/* Sanity Check */
|
||||||
if ((circuit == NULL) || (ifp == NULL)
|
if ((ifp == NULL) || (circuit->state != C_STATE_UP))
|
||||||
|| (circuit->state != C_STATE_UP))
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
zlog_debug("TE(%s): Update circuit parameters for interface %s",
|
zlog_debug("TE(%s): Update circuit parameters for interface %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user