Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ypbind Don't print uninitialized values off the sta...
details: https://anonhg.NetBSD.org/src/rev/8c43022b4269
branches: trunk
changeset: 765395:8c43022b4269
user: dholland <dholland%NetBSD.org@localhost>
date: Wed May 25 04:59:22 2011 +0000
description:
Don't print uninitialized values off the stack, even as debug messages.
diffstat:
usr.sbin/ypbind/ypbind.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r c104b55ec501 -r 8c43022b4269 usr.sbin/ypbind/ypbind.c
--- a/usr.sbin/ypbind/ypbind.c Wed May 25 04:33:52 2011 +0000
+++ b/usr.sbin/ypbind/ypbind.c Wed May 25 04:59:22 2011 +0000
@@ -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 <deraadt%fsa.ca@localhost>
@@ -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 */
Home |
Main Index |
Thread Index |
Old Index