if (len < 0) {
char const *err = fr_strerror();
talloc_free(xlat_ctx);
- fr_sbuff_in_sprintf(&out, "ERROR expanding xlat: %s", *err ? err : "no error provided");
+ FR_SBUFF_IN_SPRINTF_RETURN(&out, "ERROR expanding xlat: %s", *err ? err : "no error provided");
continue;
}
if (vp->da == attr_packet_type) {
fr_dbuff_set(&m, fr_dbuff_current(&hdr) + 1);
- fr_dbuff_in(&m, (uint8_t)vp->vp_uint32);
+ FR_DBUFF_IN_RETURN(&m, (uint8_t)vp->vp_uint32);
fr_dcursor_next(cursor);
continue;
}
if (vp->da == attr_error_code) {
fr_dbuff_set(&m, fr_dbuff_current(&hdr) + 2);
- fr_dbuff_in(&m, vp->vp_uint8);
+ FR_DBUFF_IN_RETURN(&m, vp->vp_uint8);
fr_dcursor_next(cursor);
continue;
}