asomers 897095a018 MFC r293229, r293833 to usr.sbin/rpcbind
r293833 | asomers | 2016-01-13 10:33:50 -0700 (Wed, 13 Jan 2016) | 16 lines

Fix Coverity warnings regarding r293229

rpcbind/check_bound.c
        Fix CID1347798, a memory leak in mergeaddr.

rpcbind/tests/addrmerge_test.c
        Fix CID1347800 through CID1347803, memory leaks in ATF tests.  They
        are harmless because each ATF test case runs in its own process, but
        they are trivial to fix.  Fix a few other leaks that Coverity didn't
        detect, too.

r293229 | asomers | 2016-01-05 17:00:11 -0700 (Tue, 05 Jan 2016) | 36 lines

"source routing" in rpcbind

Fix a bug in rpcbind for multihomed hosts. If the server had interfaces on
two separate subnets, and a client on the first subnet contacted rpcbind at
the address on the second subnet, rpcbind would advertise addresses on the
first subnet. This is a bug, because it should prefer to advertise the
address where it was contacted. The requested service might be firewalled
off from the address on the first subnet, for example.

usr.sbin/rpcbind/check_bound.c
        If the address on which a request was received is known, pass that
        to addrmerge as the clnt_uaddr parameter. That is what addrmerge's
        comment indicates the parameter is supposed to mean. The previous
        behavior is that clnt_uaddr would contain the address from which the
        client sent the request.

usr.sbin/rpcbind/util.c
        Modify addrmerge to prefer to use an IP that is equal to clnt_uaddr,
        if one is found. Refactor the relevant portion of the function for
        clarity, and to reduce the number of ifdefs.

etc/mtree/BSD.tests.dist
usr.sbin/rpcbind/tests/Makefile
usr.sbin/rpcbind/tests/addrmerge_test.c
        Add unit tests for usr.sbin/rpcbind/util.c:addrmerge.

usr.sbin/rpcbind/check_bound.c
usr.sbin/rpcbind/rpcbind.h
usr.sbin/rpcbind/util.c
        Constify some function arguments
2016-03-17 20:00:49 +00:00
..
2015-05-21 13:42:37 +00:00
2015-12-14 09:52:15 +00:00
2015-10-28 13:30:14 +00:00
2015-06-24 18:58:42 +00:00
2015-10-28 13:30:14 +00:00
2015-10-28 13:30:14 +00:00
2015-10-28 13:30:14 +00:00
2015-10-28 13:30:14 +00:00
2015-02-02 09:24:40 +00:00
2014-09-03 23:18:13 +00:00
2014-03-30 15:29:54 +00:00
2015-05-21 13:42:37 +00:00
2015-08-02 09:39:41 +00:00
2013-11-14 09:14:33 +00:00
2013-10-12 06:08:18 +00:00
2015-06-04 01:52:17 +00:00
2013-10-12 06:08:18 +00:00
2015-07-20 21:52:05 +00:00
2013-10-12 06:08:18 +00:00
2014-11-05 04:25:23 +00:00
2015-02-26 19:56:48 +00:00
2014-06-05 15:21:25 +00:00
2012-12-10 20:52:52 +00:00
2006-08-31 21:13:12 +00:00
2015-08-06 19:45:25 +00:00
2013-05-10 13:57:44 +00:00
2015-08-24 03:51:18 +00:00
rpc
2015-12-24 16:55:09 +00:00
2014-01-10 17:56:23 +00:00