mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 20:07:46 +00:00
isisd: Let's use an actual NULL pointer to test for a NULL pointer
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
6b1c889f29
commit
9d3de36d0d
@ -206,7 +206,7 @@ static int bfd_handle_circuit_add_addr(struct isis_circuit *circuit)
|
||||
struct isis_adjacency *adj;
|
||||
struct listnode *node;
|
||||
|
||||
if (circuit->area == 0)
|
||||
if (circuit->area == NULL)
|
||||
return 0;
|
||||
|
||||
for (ALL_LIST_ELEMENTS_RO(circuit->area->adjacency_list, node, adj)) {
|
||||
|
@ -2117,7 +2117,7 @@ static uint8_t *isis_snmp_find_circ(struct variable *v, oid *name,
|
||||
|
||||
switch (v->magic) {
|
||||
case ISIS_CIRC_IFINDEX:
|
||||
if (circuit->interface == 0)
|
||||
if (circuit->interface == NULL)
|
||||
return SNMP_INTEGER(0);
|
||||
|
||||
return SNMP_INTEGER(circuit->interface->ifindex);
|
||||
|
Loading…
Reference in New Issue
Block a user