diff options
author | brian <brian@FreeBSD.org> | 2000-07-20 09:05:15 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-07-20 09:05:15 +0000 |
commit | 145f71945d245c592d771bd0138510d7bcb43f1a (patch) | |
tree | 977d504c42072179b35113c243b77b58524acc88 /lib/libc/stdlib/labs.c | |
parent | 93bac0087e1506b7c834bf6c6d364194717b2ecd (diff) | |
download | FreeBSD-src-145f71945d245c592d771bd0138510d7bcb43f1a.zip FreeBSD-src-145f71945d245c592d771bd0138510d7bcb43f1a.tar.gz |
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
Diffstat (limited to 'lib/libc/stdlib/labs.c')
0 files changed, 0 insertions, 0 deletions