Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/net Doh. I'm a dork.
details: https://anonhg.NetBSD.org/src/rev/dc3e98accf5b
branches: trunk
changeset: 480918:dc3e98accf5b
user: mycroft <mycroft%NetBSD.org@localhost>
date: Sun Jan 23 01:37:19 2000 +0000
description:
Doh. I'm a dork.
diffstat:
lib/libc/net/getaddrinfo.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 1c34950fae0d -r dc3e98accf5b lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c Sun Jan 23 01:35:49 2000 +0000
+++ b/lib/libc/net/getaddrinfo.c Sun Jan 23 01:37:19 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getaddrinfo.c,v 1.20 2000/01/22 23:54:20 mycroft Exp $ */
+/* $NetBSD: getaddrinfo.c,v 1.21 2000/01/23 01:37:19 mycroft Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -346,11 +346,15 @@
*/
if (MATCH_FAMILY(pai->ai_family, PF_INET, 1)
|| MATCH_FAMILY(pai->ai_family, PF_INET6, 1)) {
+ ai0 = *pai;
+
if (pai->ai_family == PF_UNSPEC)
pai->ai_family = PF_INET6;
error = get_portmatch(pai, servname);
if (error)
ERR(error);
+
+ *pai = ai0;
}
ai0 = *pai;
Home |
Main Index |
Thread Index |
Old Index