Commit 602d2e93 authored by Mark Andrews's avatar Mark Andrews
Browse files

close of wrong socket [RT #5221]

parent 06846b79
......@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: socket.c,v 1.230 2003/02/26 04:00:20 marka Exp $ */
/* $Id: socket.c,v 1.231 2003/03/03 01:41:27 marka Exp $ */
#include <config.h>
......@@ -1763,7 +1763,7 @@ internal_accept(isc_task_t *me, isc_event_t *ev) {
int new, tmp;
new = fcntl(fd, F_DUPFD, 20);
tmp = errno;
(void)close(sock->fd);
(void)close(fd);
errno = tmp;
fd = new;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment