isisd: fix coverity SA warning

Add assert to clear SA warning.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
This commit is contained in:
Mark Stapp 2021-03-25 13:23:44 -04:00
parent 9a5d359ce8
commit c33cb9fba6

View 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;