]> git.puffer.fish Git - matthieu/frr.git/commitdiff
isisd: fix coverity SA warning
authorMark Stapp <mjs@voltanet.io>
Thu, 25 Mar 2021 17:23:44 +0000 (13:23 -0400)
committerMark Stapp <mjs@voltanet.io>
Fri, 26 Mar 2021 20:00:25 +0000 (16:00 -0400)
Add assert to clear SA warning.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
isisd/isis_snmp.c

index 522026dde4ef32fefdfdca3e787c46e25f3e9d48..fe6a2f405203643cd9d43d0f1e92b074435a3b3f 100644 (file)
@@ -1037,6 +1037,8 @@ static int isis_snmp_circuit_level_lookup_next(
                        break;
                }
 
+               assert(oid_idx != NULL);
+
                /* We have to check level specified by index */
                if (oid_idx[1] < IS_LEVEL_1) {
                        level = IS_LEVEL_1;