encode_nas_filter_rule() is never passed a cursor for which
fr_dcursor_current() returns NULL, so the check at the top
of the loop can be eliminated. Coverity should see the assertions
and not complain about the FR_DBUFF_IN_BYTES_RETURN().O
FR_PROTO_STACK_PRINT(da_stack, depth);
+ fr_assert(vp);
+ fr_assert(vp->da);
+
fr_dbuff_marker(&hdr, &work_dbuff);
fr_dbuff_marker(&frag_hdr, &work_dbuff);
fr_dbuff_advance(&hdr, 1);
fr_assert(vp->da == attr_nas_filter_rule);
- while (vp) {
+ while (true) {
size_t data_len = vp->vp_length;
size_t frag_len;
char const *p = vp->vp_strvalue;