Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/rlogind Oops, always store a full struct sockaddr_st...
details: https://anonhg.NetBSD.org/src/rev/9794ac944128
branches: trunk
changeset: 571282:9794ac944128
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 15 21:01:18 2004 +0000
description:
Oops, always store a full struct sockaddr_storage.
diffstat:
libexec/rlogind/rlogind.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7e62cbcd600b -r 9794ac944128 libexec/rlogind/rlogind.c
--- a/libexec/rlogind/rlogind.c Mon Nov 15 20:45:52 2004 +0000
+++ b/libexec/rlogind/rlogind.c Mon Nov 15 21:01:18 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rlogind.c,v 1.34 2004/11/15 20:45:52 christos Exp $ */
+/* $NetBSD: rlogind.c,v 1.35 2004/11/15 21:01:18 christos Exp $ */
/*
* Copyright (C) 1998 WIDE Project.
@@ -69,7 +69,7 @@
#if 0
static char sccsid[] = "@(#)rlogind.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: rlogind.c,v 1.34 2004/11/15 20:45:52 christos Exp $");
+__RCSID("$NetBSD: rlogind.c,v 1.35 2004/11/15 21:01:18 christos Exp $");
#endif
#endif /* not lint */
@@ -403,7 +403,7 @@
(void) close(f);
setup_term(0);
(void)strvisx(hostaddrbuf, (const char *)(const void *)fromp,
- fromlen, VIS_WHITE);
+ sizeof(*fromp), VIS_WHITE);
if (authenticated)
execl(_PATH_LOGIN, "login", "-p",
"-h", hostname, "-a", hostaddrbuf,
Home |
Main Index |
Thread Index |
Old Index