From cce0ef1a56b07bf8b11f548edb4687d07e773ae3 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 23 May 1998 13:37:26 +0000 Subject: [PATCH] Initialize variable "stat" in case it falls through the timeout "for" loop. --- lib/libc/rpc/pmap_rmt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/libc/rpc/pmap_rmt.c b/lib/libc/rpc/pmap_rmt.c index 421a95761671..f5db6443e232 100644 --- a/lib/libc/rpc/pmap_rmt.c +++ b/lib/libc/rpc/pmap_rmt.c @@ -1,4 +1,4 @@ -/* $NetBSD: pmap_rmt.c,v 1.14 1998/02/13 05:52:28 lukem Exp $ */ +/* $NetBSD: pmap_rmt.c,v 1.15 1998/05/23 13:37:26 tv Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -35,7 +35,7 @@ static char *sccsid = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro"; static char *sccsid = "@(#)pmap_rmt.c 2.2 88/08/01 4.0 RPCSRC"; #else -__RCSID("$NetBSD: pmap_rmt.c,v 1.14 1998/02/13 05:52:28 lukem Exp $"); +__RCSID("$NetBSD: pmap_rmt.c,v 1.15 1998/05/23 13:37:26 tv Exp $"); #endif #endif @@ -405,6 +405,7 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult) goto recv_again; } } + stat = RPC_TIMEDOUT; done_broad: (void)close(sock); AUTH_DESTROY(unix_auth);