From owner-cvs-all Thu Jul 20 2:57:33 2000 Delivered-To: cvs-all@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 9E83537B6CC; Thu, 20 Jul 2000 02:57:28 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id KAA78509; Thu, 20 Jul 2000 10:57:23 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id KAA05819; Thu, 20 Jul 2000 10:57:19 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200007200957.KAA05819@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: Jordan Hubbard Cc: 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: Message from Brian Somers of "Thu, 20 Jul 2000 02:05:15 PDT." <200007200905.CAA00684@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 20 Jul 2000 10:57:17 +0100 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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