diff
<         if (frag->offset > len) {
---
>         if (frag && frag->offset > len) {
