passfd: fix scoping bug
authorEric Blake <eblake@redhat.com>
Thu, 31 Mar 2011 00:15:33 +0000 (18:15 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 31 Mar 2011 00:18:24 +0000 (18:18 -0600)
commitf711a2d501b4cdf6f096a76d5e050bb14d67e513
tree7c997424420dea75dfe81f809c09c8846a6a41ed
parent2f681c52f62c1bb9c9dd3fe5cd7a32ec384c34c7
passfd: fix scoping bug

The scoping bug was the cause of the NetBSD hang.

* lib/passfd.c (sendfd, passfd): Don't let buf go out of scope
before sendmsg/recvmsg.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/passfd.c