From 9fb0a9020d4b8c258790a867c0d35b839bee2769 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 17 Oct 1999 10:26:45 +0000 Subject: [PATCH] (loop): close some omre fd's git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7151 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/rsh/rshd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appl/rsh/rshd.c b/appl/rsh/rshd.c index b953d7977..62d287ff7 100644 --- a/appl/rsh/rshd.c +++ b/appl/rsh/rshd.c @@ -418,6 +418,7 @@ loop (int from0, int to0, syslog_and_die ("read: %m"); else if (ret == 0) { close (from0); + close (to0); FD_CLR(from0, &real_readset); } else net_write (to0, buf, ret); @@ -428,6 +429,7 @@ loop (int from0, int to0, syslog_and_die ("read: %m"); else if (ret == 0) { close (from1); + close (to1); FD_CLR(from1, &real_readset); if (--count == 0) exit (0); @@ -440,6 +442,7 @@ loop (int from0, int to0, syslog_and_die ("read: %m"); else if (ret == 0) { close (from2); + close (to2); FD_CLR(from2, &real_readset); if (--count == 0) exit (0);