1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/usr.sbin/rpcbind
Ian Dowse 99d4ecdfc0 Clean up the addrmerge() function, which was over-complicated and
contained a number of memory leaks. The changes include:

 - Add a comment describing what addrmerge() does.
 - Deal with 0.0.0.0./::. or AF_LOCAL callers correctly.
 - Use rpcbind_get_conf() instead of getnetconfigent() so we don't
   have to remember to free the returned netconfig struct.
 - Make just one pass through the ifaddrs list; we can pick up a fallback
   interface address in the same pass as the netmask comparison.
 - Define and use SA2SIN* macros to avoid the need for loads of
   protocol-specific local variables.
 - Use mostly protocol-independent code for building the netbuf version
   of the address to be returned.
 - Use the common cleanup code for virtually all error and non-error
   cases, fixing a number of memory leaks.
2001-06-24 15:03:06 +00:00
..
check_bound.c
Makefile - Backout botched attempt to introduce MANSECT feature. 2001-03-26 14:42:20 +00:00
pmap_svc.c Hopefully fix some of the bugs in passing credentials over UNIX domain sockets. 2001-03-22 04:31:30 +00:00
rpcb_stat.c
rpcb_svc_4.c
rpcb_svc_com.c Fix some return-value brain-damage in forward_register(). This 2001-06-23 21:54:47 +00:00
rpcb_svc.c
rpcbind.8
rpcbind.c
rpcbind.h
security.c
util.c Clean up the addrmerge() function, which was over-complicated and 2001-06-24 15:03:06 +00:00
warmstart.c