From d063ef14619b4a6bb23a933bb8ce3824c0e9b941 Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Mon, 27 Jan 2003 22:38:25 +0000 Subject: Check pmap_flag before sendto. NetBSD r 1.5 Reviewed by: phk Obtained from: NetBSD --- lib/libc/rpc/clnt_bcast.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/rpc/clnt_bcast.c b/lib/libc/rpc/clnt_bcast.c index afafb3028fd30..03fdf61da2f1d 100644 --- a/lib/libc/rpc/clnt_bcast.c +++ b/lib/libc/rpc/clnt_bcast.c @@ -474,7 +474,8 @@ rpc_broadcast_exp(prog, vers, proc, xargs, argsp, xresults, resultsp, * Send the version 2 packet also * for UDP/IP */ - if (fdlist[i].proto == IPPROTO_UDP) { + if (pmap_flag && + fdlist[i].proto == IPPROTO_UDP) { if (_sendto(fdlist[i].fd, outbuf_pmap, outlen_pmap, 0, addr, (size_t)fdlist[i].asize) != -- cgit v1.3