diff options
author | pfg <pfg@FreeBSD.org> | 2012-10-02 19:03:21 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2012-10-02 19:03:21 +0000 |
commit | 7842c9016d1bb554ec3ceff6a37e072c5556531e (patch) | |
tree | 9a0b09934d3126b529722ac58d28ff0a26554b1e /lib/libc/stdlib/getenv.c | |
parent | 801a570273e78622987dcab8701b018ed637f465 (diff) | |
download | FreeBSD-src-7842c9016d1bb554ec3ceff6a37e072c5556531e.zip FreeBSD-src-7842c9016d1bb554ec3ceff6a37e072c5556531e.tar.gz |
Fix __rpc_getconfip
__rpc_getconfip is supposed to return the first netconf
entry supporting tcp or udp, respectively. The code will
currently return the *last* entry, plus it will leak
memory when there is more than one such entry.
This change matches the reference (OpenSolaris)
implementation.
Tested by: David Wolfskill
Obtained from: Bull GNU/linux NFSv4 Project (libtirpc)
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/getenv.c')
0 files changed, 0 insertions, 0 deletions