Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2001 20:34:12 -0400 (EDT)
From:      Mike Heffner <mheffner@novacoxmail.com>
To:        Kenji Tomita <tommy@ti.com>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/14255: rup and rusers could not deal with many host
Message-ID:  <XFMail.20010617203412.mheffner@novacoxmail.com>
In-Reply-To: <200106160514.f5G5EKf14415@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format
--_=XFMail.1.4.7.FreeBSD:20010617203412:477=_
Content-Type: text/plain; charset=us-ascii

I think the following is a more complete patch, could you try it out?

Thanks,

Mike

-- 
  Mike Heffner               <mheffner@vt.edu>
  Fredericksburg, VA       <mikeh@FreeBSD.org>
      http://filebox.vt.edu/users/mheffner


Index: rup/rup.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/rup/rup.c,v
retrieving revision 1.13
diff -u -r1.13 rup.c
--- rup/rup.c   2001/03/19 12:50:04     1.13
+++ rup/rup.c   2001/06/18 00:31:56
@@ -176,11 +176,13 @@
        tv.tv_usec = 0;
        if (clnt_call(rstat_clnt, RSTATPROC_STATS, xdr_void, NULL,
xdr_statstime, &host_stat, tv) != RPC_SUCCESS) {
                warnx("%s: %s", host, clnt_sperror(rstat_clnt, host));
+               clnt_destroy(rstat_clnt);
                return(-1);
        }
 
        addr.sin_addr.s_addr = *(int *)hp->h_addr;
        rstat_reply((caddr_t)&host_stat, &addr);
+       clnt_destroy(rstat_clnt);
        return (0);
 }
 
Index: rusers/rusers.c
===================================================================
RCS file: /home/ncvs/src/usr.bin/rusers/rusers.c,v
retrieving revision 1.8
diff -u -r1.8 rusers.c
--- rusers/rusers.c     1999/08/28 01:05:29     1.8
+++ rusers/rusers.c     2001/06/18 00:31:57
@@ -193,6 +193,7 @@
                 errx(1, "%s", clnt_sperror(rusers_clnt, ""));
         addr.sin_addr.s_addr = *(int *)hp->h_addr;
         rusers_reply((char *)&up, &addr);
+       clnt_destroy(rusers_clnt);
 }
 
 void



--_=XFMail.1.4.7.FreeBSD:20010617203412:477=_
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE7LUyEFokZQs3sv5kRAjY9AJ9J+qlw6PL663i9DZCz24Br/bGXiACfWOEc
p0tKl0XGP06JtPcuw6Zh8/g=
=8d1F
-----END PGP SIGNATURE-----

--_=XFMail.1.4.7.FreeBSD:20010617203412:477=_--
End of MIME message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20010617203412.mheffner>