From ef2dd4bcb0cbc7945fe86e531f570cf4c984fb68 Mon Sep 17 00:00:00 2001 From: Mark Adamson Date: Fri, 8 Dec 2000 23:23:08 +0000 Subject: [PATCH] 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. --- libraries/liblutil/sockpair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.39.5