From owner-cvs-all Thu Jul 20 23:21:28 2000 Delivered-To: cvs-all@freebsd.org Received: from zippy.osd.bsdi.com (zippy.osd.bsdi.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id 087CE37B652; Thu, 20 Jul 2000 23:21:24 -0700 (PDT) (envelope-from jkh@zippy.osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by zippy.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id XAA00698; Thu, 20 Jul 2000 23:22:30 -0700 (PDT) (envelope-from jkh@zippy.osd.bsdi.com) To: Brian Somers Cc: Jordan Hubbard , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Brian Somers , shin@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/net rcmd.3 rcmd.c In-reply-to: Your message of "Thu, 20 Jul 2000 10:57:17 BST." <200007200957.KAA05819@hak.lan.Awfulhak.org> Date: Thu, 20 Jul 2000 23:22:30 -0700 Message-ID: <695.964160550@localhost> From: "Jordan K. Hubbard" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Seems like one to me. - Jordan > I think this is a MFC candidate... comments ? > > > brian 2000/07/20 02:05:15 PDT > > > > Modified files: > > lib/libc/net rcmd.3 rcmd.c > > Log: > > Alocate rcmd{,_af}()'s *ahost argument using malloc() (well > > strdup()) rather than pointing it at something that's free()d > > (via freeaddrinfo(res)) before the function returns. > > > > I appreciate that this is an API change, but it's the only way > > (AFAIK) of doing this without breaking existing code that uses > > rcmd{,_af}(). > > > > Pointed out by: phkmalloc > > > > Revision Changes Path > > 1.15 +6 -1 src/lib/libc/net/rcmd.3 > > 1.27 +10 -4 src/lib/libc/net/rcmd.c > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message