Module Name:    src
Committed By:   dholland
Date:           Wed May 25 04:59:22 UTC 2011

Modified Files:
        src/usr.sbin/ypbind: ypbind.c

Log Message:
Don't print uninitialized values off the stack, even as debug messages.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/usr.sbin/ypbind/ypbind.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/ypbind/ypbind.c
diff -u src/usr.sbin/ypbind/ypbind.c:1.87 src/usr.sbin/ypbind/ypbind.c:1.88
--- src/usr.sbin/ypbind/ypbind.c:1.87	Wed May 25 04:33:52 2011
+++ src/usr.sbin/ypbind/ypbind.c	Wed May 25 04:59:22 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ypbind.c,v 1.87 2011/05/25 04:33:52 dholland Exp $	*/
+/*	$NetBSD: ypbind.c,v 1.88 2011/05/25 04:59:22 dholland Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993 Theo de Raadt <[email protected]>
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 #ifndef LINT
-__RCSID("$NetBSD: ypbind.c,v 1.87 2011/05/25 04:33:52 dholland Exp $");
+__RCSID("$NetBSD: ypbind.c,v 1.88 2011/05/25 04:59:22 dholland Exp $");
 #endif
 
 #include <sys/types.h>
@@ -521,9 +521,9 @@
 	struct sockaddr_in *fromsin, bindsin;
 	static bool_t res;
 
-	DPRINTF("ypbindproc_setdom_2 %s\n", inet_ntoa(bindsin.sin_addr));
 	(void)memset(&res, 0, sizeof(res));
 	fromsin = svc_getcaller(transp);
+	DPRINTF("ypbindproc_setdom_2 from %s\n", inet_ntoa(fromsin->sin_addr));
 
 	if (allow_any_ypset) {
 		/* nothing */

Reply via email to