Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net sa_len was not properly set due to autoconf #if...
details: https://anonhg.NetBSD.org/src/rev/35d649e1641a
branches: trunk
changeset: 481949:35d649e1641a
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Feb 10 03:06:53 2000 +0000
description:
sa_len was not properly set due to autoconf #ifdef.
(mistake in yesterday's upgrade)
diffstat:
lib/libc/net/getaddrinfo.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 27692a3492f4 -r 35d649e1641a lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Thu Feb 10 02:15:01 2000 +0000
+++ b/lib/libc/net/getaddrinfo.c Thu Feb 10 03:06:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getaddrinfo.c,v 1.27 2000/02/09 12:25:06 itojun Exp $ */
+/* $NetBSD: getaddrinfo.c,v 1.28 2000/02/10 03:06:53 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -831,9 +831,7 @@
memcpy(ai, pai, sizeof(struct addrinfo));
ai->ai_addr = (struct sockaddr *)(ai + 1);
memset(ai->ai_addr, 0, (size_t)afd->a_socklen);
-#ifdef HAVE_SOCKADDR_SA_LEN
ai->ai_addr->sa_len = afd->a_socklen;
-#endif
ai->ai_addrlen = afd->a_socklen;
ai->ai_addr->sa_family = ai->ai_family = afd->a_af;
p = (char *)(ai->ai_addr);
Home |
Main Index |
Thread Index |
Old Index