Skip to content

Commit ae3a608

Browse files
committed
lib: pkgdb_map_vpkgs fix error path null pointer dereference
1 parent 1a94087 commit ae3a608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pkgdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ pkgdb_map_vpkgs(struct xbps_handle *xhp)
167167
if (!iter) {
168168
r = -errno;
169169
xbps_error_printf("failed to create iterator");
170-
goto out;
170+
return r;
171171
}
172172

173173
while ((obj = xbps_object_iterator_next(iter))) {

0 commit comments

Comments
 (0)