]> granicus.if.org Git - libtirpc/commit
tirpc: fix taddr2uaddr for AF_LOCAL
authorThorsten Kukuk <kukuk@suse.de>
Tue, 16 Dec 2014 19:00:12 +0000 (14:00 -0500)
committerSteve Dickson <steved@redhat.com>
Tue, 16 Dec 2014 19:04:34 +0000 (14:04 -0500)
commit61d4aef25a2bb4a460beb40dbdd30dd3fb883547
treead2f534f3d50bf290f043d73b03d468dcfefef4b
parent8abf34ee3c5ea0b1dc48018edaf521abb3d0307c
tirpc: fix taddr2uaddr for AF_LOCAL

taddr2uaddr would return trailing garbage for AF_LOCAL addresses

taddr2uaddr assumed that the sun_path field of an AF_LOCAL address
was always NULL terminated, but that is not necessarily the case,
especially if the buffer was allocated using the correct SUN_LEN().

Signed-off-by: Olaf Kirch <okir@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
src/rpc_generic.c