add socks5-v1.0r10.patch3.txt patch

--
This patch fixes a problem with the SOCKS client library for dup().
The ftp client uses dup().
This commit is contained in:
brad 2000-08-03 00:03:21 +00:00
parent ba8ef35c1b
commit 0d0233dd72

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-lib_cache.c,v 1.1 2000/08/03 00:03:21 brad Exp $
This patch fixes a problem with the SOCKS client library for dup().
The ftp client uses dup().
--- lib/cache.c.orig Wed Aug 2 19:06:02 2000
+++ lib/cache.c Wed Aug 2 19:06:34 2000
@@ -26,8 +26,8 @@
lsProxyInfo *n, *p = *pp;
for (n = p?p->next:NULL; p ; p = n, n = n?n->next:NULL) {
- if (--(p->refcount) > 0) continue;
if (p->cinfo.fd == rfd) p->cinfo.fd = S5InvalidIOHandle;
+ if (--(p->refcount) > 0) continue;
S5BufCleanContext(&p->cinfo);
free(p);
}