]> git.sur5r.net Git - openldap/commitdiff
ITS#897 Internal connection that is closed on one end and about to
authorMark Adamson <adamson@openldap.org>
Fri, 8 Dec 2000 23:23:08 +0000 (23:23 +0000)
committerMark Adamson <adamson@openldap.org>
Fri, 8 Dec 2000 23:23:08 +0000 (23:23 +0000)
be closed on other end could get reused by a new internal connection.

libraries/liblutil/sockpair.c

index ba42133df6f215db75b7d86ebd83d31c9e219090..86b8f3809bbad5506837c00f4d765be6c8a377b2 100644 (file)
@@ -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
 }