Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Silently return when obj is NULL
Renato Botelho committed 8 years ago
commit 35d1c923b67b8f9a849b9e0894aa707a52beac41
parent 4e7f53e8b7ec26841af54dd6f9fa10d605b14c19
1 file changed +4 -0
modified libpkg/pkg_repo.c
@@ -977,6 +977,10 @@ pkg_repo_load_fingerprint(const char *dir, const char *filename)
	obj = ucl_parser_get_object(p);
	close(fd);

+
	/* Silently return if obj is NULL */
+
	if (!obj)
+
		return(NULL);
+

	if (obj->type == UCL_OBJECT)
		f = pkg_repo_parse_fingerprint(obj);