diff options
author | mikeh <mikeh@FreeBSD.org> | 2001-06-19 03:48:26 +0000 |
---|---|---|
committer | mikeh <mikeh@FreeBSD.org> | 2001-06-19 03:48:26 +0000 |
commit | 1cdd9402ff0dd8da8582fe86d0089fda671679e2 (patch) | |
tree | 37444c939d549abb0a706a4321b2042c1ccab5b6 /usr.bin/rup/rup.c | |
parent | ab585f780e066a0ba48c1830b86f2168dc0c4035 (diff) | |
download | FreeBSD-src-1cdd9402ff0dd8da8582fe86d0089fda671679e2.zip FreeBSD-src-1cdd9402ff0dd8da8582fe86d0089fda671679e2.tar.gz |
Call clnt_destroy() to prevent exhausting resources.
PR: bin/14255
Reviewed by: Kenji Tomita <tommy@ti.com>
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/rup/rup.c')
-rw-r--r-- | usr.bin/rup/rup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/rup/rup.c b/usr.bin/rup/rup.c index 6d414b0..a93c6a2 100644 --- a/usr.bin/rup/rup.c +++ b/usr.bin/rup/rup.c @@ -176,11 +176,13 @@ onehost(char *host) 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); } |