Module Name: src
Committed By: christos
Date: Mon May 13 14:29:41 UTC 2019
Modified Files:
src/usr.sbin/rpcbind: rpcbind.c
Log Message:
Don't pass an uinitialized pm_prot to rpcinfo. It expects 0 for local,
so give it 0.
To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/usr.sbin/rpcbind/rpcbind.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rpcbind/rpcbind.c
diff -u src/usr.sbin/rpcbind/rpcbind.c:1.27 src/usr.sbin/rpcbind/rpcbind.c:1.28
--- src/usr.sbin/rpcbind/rpcbind.c:1.27 Thu Jan 3 14:26:50 2019
+++ src/usr.sbin/rpcbind/rpcbind.c Mon May 13 10:29:41 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: rpcbind.c,v 1.27 2019/01/03 19:26:50 christos Exp $ */
+/* $NetBSD: rpcbind.c,v 1.28 2019/05/13 14:29:41 christos Exp $ */
/*-
* Copyright (c) 2009, Sun Microsystems, Inc.
@@ -635,11 +635,13 @@ init_transport(struct netconfig *nconf)
/* Let's snarf the universal address */
/* "h1.h2.h3.h4.p1.p2" */
udp_uaddr = taddr2uaddr(nconf, &taddr.addr);
- }
+ } else if (strcmp(nconf->nc_netid, "local") == 0) {
#ifdef IPPROTO_ST
- else if (strcmp(nconf->nc_netid, "local") == 0)
pml->pml_map.pm_prot = IPPROTO_ST;
+#else
+ pml->pml_map.pm_prot = 0;
#endif
+ }
pml->pml_next = list_pml;
list_pml = pml;