diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1996-08-12 14:00:26 +0000 | 
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1996-08-12 14:00:26 +0000 | 
| commit | 54edc0bbbfcc1123b31fa29f3502bb25e5769d93 (patch) | |
| tree | 5ef6d941ce8ca2df8701e926198d01206fc35900 /lib/libc/rpc/clnt_simple.c | |
| parent | f2b2a91e75c461a66ed2969fc455ec98f6e9bb54 (diff) | |
Notes
Diffstat (limited to 'lib/libc/rpc/clnt_simple.c')
| -rw-r--r-- | lib/libc/rpc/clnt_simple.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/rpc/clnt_simple.c b/lib/libc/rpc/clnt_simple.c index 5dfbc228d1be..5d24b8502227 100644 --- a/lib/libc/rpc/clnt_simple.c +++ b/lib/libc/rpc/clnt_simple.c @@ -30,7 +30,7 @@  #if defined(LIBC_SCCS) && !defined(lint)  /*static char *sccsid = "from: @(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";*/  /*static char *sccsid = "from: @(#)clnt_simple.c	2.2 88/08/01 4.0 RPCSRC";*/ -static char *rcsid = "$Id: clnt_simple.c,v 1.3 1995/10/22 14:51:17 phk Exp $"; +static char *rcsid = "$Id: clnt_simple.c,v 1.4 1996/06/10 20:13:03 jraynard Exp $";  #endif  /* @@ -93,7 +93,9 @@ int callrpc(host, prognum, versnum, procnum, inproc, in, outproc, out)  			return ((int) RPC_UNKNOWNHOST);  		timeout.tv_usec = 0;  		timeout.tv_sec = 5; +		memset(&server_addr, 0, sizeof(server_addr));  		bcopy(hp->h_addr, (char *)&server_addr.sin_addr, hp->h_length); +		server_addr.sin_len = sizeof(struct sockaddr_in);  		server_addr.sin_family = AF_INET;  		server_addr.sin_port =  0;  		if ((crp->client = clntudp_create(&server_addr, (u_long)prognum,  | 
