Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/rpcbind Don't pass an uinitialized pm_prot to rpcin...



details:   https://anonhg.NetBSD.org/src/rev/96049b289073
branches:  trunk
changeset: 999039:96049b289073
user:      christos <christos%NetBSD.org@localhost>
date:      Mon May 13 14:29:41 2019 +0000

description:
Don't pass an uinitialized pm_prot to rpcinfo. It expects 0 for local,
so give it 0.

diffstat:

 usr.sbin/rpcbind/rpcbind.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 50ec919dba32 -r 96049b289073 usr.sbin/rpcbind/rpcbind.c
--- a/usr.sbin/rpcbind/rpcbind.c        Mon May 13 09:21:06 2019 +0000
+++ b/usr.sbin/rpcbind/rpcbind.c        Mon May 13 14:29:41 2019 +0000
@@ -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 @@
                        /* 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;
 



Home | Main Index | Thread Index | Old Index