Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2000 10:57:17 +0100
From:      Brian Somers <brian@Awfulhak.org>
To:        Jordan Hubbard <jkh@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Brian Somers <brian@FreeBSD.org>, shin@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/net rcmd.3 rcmd.c 
Message-ID:  <200007200957.KAA05819@hak.lan.Awfulhak.org>
In-Reply-To: Message from Brian Somers <brian@FreeBSD.org>  of "Thu, 20 Jul 2000 02:05:15 PDT." <200007200905.CAA00684@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007200957.KAA05819>