Module Name:    src
Committed By:   mrg
Date:           Tue Apr 13 05:58:45 UTC 2021

Modified Files:
        src/usr.sbin/rpcbind: rpcb_svc_com.c

Log Message:
avoid potential uninitialised variable use.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/rpcbind/rpcb_svc_com.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/rpcb_svc_com.c
diff -u src/usr.sbin/rpcbind/rpcb_svc_com.c:1.24 src/usr.sbin/rpcbind/rpcb_svc_com.c:1.25
--- src/usr.sbin/rpcbind/rpcb_svc_com.c:1.24	Sun Mar  7 00:23:06 2021
+++ src/usr.sbin/rpcbind/rpcb_svc_com.c	Tue Apr 13 05:58:45 2021
@@ -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 @@ handle_reply(int fd, SVCXPRT *xprt)
 	char *uaddr;
 #endif
 
+	reply_msg.rm_xid = 0;
+
 	buffer = malloc(RPC_BUF_MAX);
 	if (buffer == NULL)
 		goto done;

Reply via email to