]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Quiet clang scan
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 8 Jan 2022 07:00:30 +0000 (23:00 -0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sat, 8 Jan 2022 07:00:30 +0000 (23:00 -0800)
src/lib/server/snmp.c

index 60e8b9186440ae420c95161d9bd39595200c9640..27cefa8ea954722a5c405c74627daad3befd826f 100644 (file)
@@ -887,6 +887,8 @@ static ssize_t snmp_process(fr_dcursor_t *out, request_t *request,
                        return -(ssize_t)(depth - 1);
                }
                snmp_next_leaf(da_stack, depth, &map[1]);
+
+               if (!fr_cond_assert(da_stack->da[depth])) return -1;
        }
 
        /*