From: Mark Adamson Date: Fri, 8 Dec 2000 23:23:08 +0000 (+0000) Subject: ITS#897 Internal connection that is closed on one end and about to X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1626 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ef2dd4bcb0cbc7945fe86e531f570cf4c984fb68;p=openldap ITS#897 Internal connection that is closed on one end and about to be closed on other end could get reused by a new internal connection. --- diff --git a/libraries/liblutil/sockpair.c b/libraries/liblutil/sockpair.c index ba42133df6..86b8f3809b 100644 --- a/libraries/liblutil/sockpair.c +++ b/libraries/liblutil/sockpair.c @@ -57,7 +57,8 @@ int lutil_pair( ber_socket_t sds[2] ) return rc; } - sds[0] = sds[1] = sd; + sds[0] = sd; + sds[1] = dup( sds[0] ); return 0; #endif }