Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rpcbind avoid potential uninitialised variable use.
details: https://anonhg.NetBSD.org/src/rev/ad12c236351c
branches: trunk
changeset: 961241:ad12c236351c
user: mrg <mrg%NetBSD.org@localhost>
date: Tue Apr 13 05:58:45 2021 +0000
description:
avoid potential uninitialised variable use.
diffstat:
usr.sbin/rpcbind/rpcb_svc_com.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 694819d55d54 -r ad12c236351c usr.sbin/rpcbind/rpcb_svc_com.c
--- a/usr.sbin/rpcbind/rpcb_svc_com.c Tue Apr 13 05:28:16 2021 +0000
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c Tue Apr 13 05:58:45 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rpcb_svc_com.c,v 1.24 2021/03/07 00:23:06 christos Exp $ */
+/* $NetBSD: rpcb_svc_com.c,v 1.25 2021/04/13 05:58:45 mrg Exp $ */
/* $FreeBSD: head/usr.sbin/rpcbind/rpcb_svc_com.c 301770 2016-06-09 22:25:00Z pfg $ */
/*-
@@ -1275,6 +1275,8 @@
char *uaddr;
#endif
+ reply_msg.rm_xid = 0;
+
buffer = malloc(RPC_BUF_MAX);
if (buffer == NULL)
goto done;
Home |
Main Index |
Thread Index |
Old Index