swrap: fix fd-passing without 4 padding bytes
authorStefan Metzmacher <metze@samba.org>
Thu, 4 Feb 2021 15:20:13 +0000 (16:20 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 8 Feb 2021 18:29:57 +0000 (19:29 +0100)
commite896cecf1fc08d091d09fa29f1cfbfc22dab89ff
treea0e8f74fbbcb6880a08e00281746790d37563f5f
parent3c7ef4751527bd8c93d5431d9f1e36c4fe648f3d
swrap: fix fd-passing without 4 padding bytes

We noticed the problem on 32 bit platforms and sending a single
application fd, the hidden pipe-fd doesn't fit into the padding
bytes. This can also happen on 64 bit platforms and an even number
of application fds.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
src/socket_wrapper.c