Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
HBSD: Check for NULL
Shawn Webb committed 5 years ago
commit 47edf1fab00ca9753f162f2a39384b09b8da1d00
parent dcf0ba3
1 file changed +4 -0
modified libpkg/extattr.c
@@ -67,6 +67,10 @@ pkg_archive_extattrs(int fd, struct archive_entry *entry)
	}

	names = calloc(listsize, 1);
+
	if (names == NULL) {
+
		return (EPKG_OK);
+
	}
+

	if (extattr_list_fd(fd, namespace, names, listsize) !=
	    listsize) {
		goto end;