projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa5a1ab
)
(clntudp_call): If xargs is NULL, don't encode it.
author
drepper
<drepper>
Mon, 21 Jul 1997 23:50:05 +0000
(23:50 +0000)
committer
drepper
<drepper>
Mon, 21 Jul 1997 23:50:05 +0000
(23:50 +0000)
sunrpc/clnt_udp.c
patch
|
blob
|
history
diff --git
a/sunrpc/clnt_udp.c
b/sunrpc/clnt_udp.c
index
e19e7e8
..
5faf46c
100644
(file)
--- a/
sunrpc/clnt_udp.c
+++ b/
sunrpc/clnt_udp.c
@@
-262,6
+262,8
@@
clntudp_call (cl, proc, xargs, argsp, xresults, resultsp, utimeout)
time_waited.tv_usec = 0;
call_again:
xdrs = &(cu->cu_outxdrs);
+ if (xargs == NULL)
+ goto get_reply;
xdrs->x_op = XDR_ENCODE;
XDR_SETPOS (xdrs, cu->cu_xdrpos);
/*
@@
-290,6
+292,7
@@
send_again:
{
return (cu->cu_error.re_status = RPC_TIMEDOUT);
}
+ get_reply:
/*
* sub-optimal code appears here because we have
* some clock time to spare while the packets are in flight.