Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
HBSD: Check for NULL
Shawn Webb committed 5 years ago
commit 47edf1fab00ca9753f162f2a39384b09b8da1d00
parent dcf0ba3777f1b10c7a64f5510b350b29f2fd2274
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;