forked from Mirror/frr
Merge pull request #14453 from pguibert6WIND/isis_startup_crash
isisd: fix crash when configuring srv6 locator without isis instance
This commit is contained in:
commit
4d64badc5b
|
@ -1225,6 +1225,9 @@ static int isis_zebra_process_srv6_locator_add(ZAPI_CALLBACK_ARGS)
|
||||||
struct listnode *node;
|
struct listnode *node;
|
||||||
struct isis_area *area;
|
struct isis_area *area;
|
||||||
|
|
||||||
|
if (!isis)
|
||||||
|
return -1;
|
||||||
|
|
||||||
/* Decode the SRv6 locator */
|
/* Decode the SRv6 locator */
|
||||||
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
|
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -1274,6 +1277,9 @@ static int isis_zebra_process_srv6_locator_delete(ZAPI_CALLBACK_ARGS)
|
||||||
struct isis_srv6_sid *sid;
|
struct isis_srv6_sid *sid;
|
||||||
struct srv6_adjacency *sra;
|
struct srv6_adjacency *sra;
|
||||||
|
|
||||||
|
if (!isis)
|
||||||
|
return -1;
|
||||||
|
|
||||||
/* Decode the received zebra message */
|
/* Decode the received zebra message */
|
||||||
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
|
if (zapi_srv6_locator_decode(zclient->ibuf, &loc) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in a new issue