From owner-freebsd-bugs Sun Jun 17 17:35:22 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from iatl0x01.coxmail.com (iatl1x01.coxmail.com [206.157.231.23]) by hub.freebsd.org (Postfix) with ESMTP id EF58C37B403 for ; Sun, 17 Jun 2001 17:35:08 -0700 (PDT) (envelope-from mheffner@novacoxmail.com) Received: from enterprise.muriel.penguinpowered.com ([208.138.198.178]) by iatl0x01.coxmail.com (InterMail vK.4.03.02.00 201-232-124 license 85f4f10023be2bd3bce00b3a38363ea2) with ESMTP id <20010618003507.OJKS1034.iatl0x01@enterprise.muriel.penguinpowered.com>; Sun, 17 Jun 2001 20:35:07 -0400 Message-ID: X-Mailer: XFMail 1.4.7 on FreeBSD X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="_=XFMail.1.4.7.FreeBSD:20010617203412:477=_"; micalg=pgp-md5; protocol="application/pgp-signature" In-Reply-To: <200106160514.f5G5EKf14415@freefall.freebsd.org> MYHEADER: test Date: Sun, 17 Jun 2001 20:34:12 -0400 (EDT) Reply-To: Mike Heffner From: Mike Heffner To: Kenji Tomita Subject: Re: bin/14255: rup and rusers could not deal with many host Cc: freebsd-bugs@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 Fredericksburg, VA 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