SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,19 @@
Unbreak funopen usage with libtorsocks - always call the libc fclose
function, even when fd < 0.
Index: src/lib/fclose.c
--- src/lib/fclose.c.orig
+++ src/lib/fclose.c
@@ -64,11 +64,9 @@ LIBC_FCLOSE_RET_TYPE tsocks_fclose(LIBC_FCLOSE_SIG)
connection_put_ref(conn);
}
+error:
/* Return the original libc fclose. */
return tsocks_libc_fclose(fp);
-
-error:
- return -1;
}
/*