From owner-cvs-all Thu Sep 21 20:31:29 2000 Delivered-To: cvs-all@freebsd.org Received: from hitpro.hitachi.co.jp (hitpro.hitachi.co.jp [133.145.224.7]) by hub.freebsd.org (Postfix) with ESMTP id AE83737B422; Thu, 21 Sep 2000 20:31:23 -0700 (PDT) Received: from bisdgw.bisd.hitachi.co.jp by hitpro.hitachi.co.jp (8.9.3/3.7W-hitpro) id MAA22192; Fri, 22 Sep 2000 12:31:18 +0900 (JST) Received: from plum.ssr.bisd.hitachi.co.jp by bisdgw.bisd.hitachi.co.jp (8.9.3+3.2W/3.7W-bisdgw) with ESMTP id MAA17691; Fri, 22 Sep 2000 12:31:17 +0900 (JST) (envelope-from ume@bisd.hitachi.co.jp) Received: from localhost (IDENT:JRv1IVqxslr2tXcDWVQ3iR2CRp6rQStIbV43DjQnbpxBoTNHjUkQoqN5KvAaUjVj@localhost [::1]) by plum.ssr.bisd.hitachi.co.jp (8.11.0/8.11.0/plum) with ESMTP/inet6 id e8M3VH739806; Fri, 22 Sep 2000 12:31:17 +0900 (JST) (envelope-from ume@bisd.hitachi.co.jp) Message-Id: <200009220331.e8M3VH739806@plum.ssr.bisd.hitachi.co.jp> To: wollman@khavrinen.lcs.mit.edu Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/finger net.c From: Hajimu UMEMOTO In-Reply-To: <200009220114.VAA09611@khavrinen.lcs.mit.edu> References: <200009220106.SAA21368@freefall.freebsd.org> <200009220114.VAA09611@khavrinen.lcs.mit.edu> X-Mailer: xcite1.20> Mew version 1.94.2 on Emacs 20.6 / Mule 4.0 (HANANOEN) X-PGP-Fingerprint: D3 3D D3 54 88 13 DE 22 3F 31 C4 4D A1 08 84 7B X-PGP-Public-Key: http://www.imasy.org/~ume/ume@bisd.hitachi.co.jp.asc X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 4.1-RELEASE Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 22 Sep 2000 12:31:16 +0900 X-Dispatcher: imput version 20000414(IM141) Lines: 34 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Thu, 21 Sep 2000 18:06:41 -0700 (PDT) >>>>> wollman@FreeBSD.org (Garrett Wollman) said: wollman> wollman 2000/09/21 18:06:41 PDT wollman> Modified files: wollman> usr.bin/finger net.c wollman> Log: wollman> Implement IPv6 support. Also restructure the way multi-homed hosts wollman> are treated, regardless of protocol. Fine! Please don't forget to initialize struct addrinfo. Index: net.c =================================================================== RCS file: /home/ncvs/src/usr.bin/finger/net.c,v retrieving revision 1.13 diff -u -r1.13 net.c --- net.c 2000/09/22 01:06:40 1.13 +++ net.c 2000/09/22 03:23:56 @@ -85,6 +85,7 @@ signal(SIGALRM, cleanup); alarm(TIME_LIMIT); + memset(&hint, 0, sizeof(hint)); hint.ai_flags = AI_CANONNAME; hint.ai_family = PF_UNSPEC; hint.ai_socktype = SOCK_STREAM; -- Hajimu UMEMOTO @ Business Solution System Development Div., Hitachi Ltd. E-Mail: ume@bisd.hitachi.co.jp ume@mahoroba.org ume@FreeBSD.org URL: http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message