diff options
author | yar <yar@FreeBSD.org> | 2002-08-20 14:56:06 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2002-08-20 14:56:06 +0000 |
commit | a5929f9a8823713901e4fb9a3162faa98aa59388 (patch) | |
tree | 7e762fe4ed6aa9b786288fafb609f87b79bf3b68 /usr.bin | |
parent | 341b7477e77178c127194a8dc6f88542c946492d (diff) | |
download | FreeBSD-src-a5929f9a8823713901e4fb9a3162faa98aa59388.zip FreeBSD-src-a5929f9a8823713901e4fb9a3162faa98aa59388.tar.gz |
Clean up hostname and hostinfo handling in inithosts():
o check getaddrinfo(3) return value, not result pointer
o getaddrinfo(3) returns int, not pointer
o don't leak memory allocated for hostnames and hostinfo structures
o initialize pointers that will be checked for NULL somewhere
MFC after: 1 week
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions