Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
audit: remove duplicated code
Baptiste Daroussin committed 2 years ago
commit 48ea3de756f450375bb852339d0167bd15f1383a
parent 93c7041
1 file changed +1 -3
modified libpkg/pkg_audit.c
@@ -236,10 +236,8 @@ pkg_audit_fetch(const char *src, const char *dest)

	/* Open input fd */
	fd = open(tmp, O_RDONLY);
-
	if (fd == -1) {
-
		retcode = EPKG_FATAL;
+
	if (fd == -1)
		goto cleanup;
-
	}
	/* Open out fd */
	if (dest != NULL) {
		outfd = open(dest, O_RDWR|O_CREAT|O_TRUNC,