SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
net/torsocks/patches/patch-src_lib_fclose_c
Normal file
19
net/torsocks/patches/patch-src_lib_fclose_c
Normal 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;
|
||||
}
|
||||
|
||||
/*
|
Loading…
Add table
Add a link
Reference in a new issue