Skip to content

Commit a55fd48

Browse files
committed
fix(jsonblob): check for error in Next
Signed-off-by: RTann <[email protected]>
1 parent 8fd9a12 commit a55fd48

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libvuln/jsonblob/jsonblob.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ func (l *Loader) Next() bool {
103103
}
104104
}
105105
}
106+
if l.err != nil {
107+
return false
108+
}
106109
l.e = l.next
107110
return true
108111
}

0 commit comments

Comments
 (0)