connection: Fix sendmsg() on FreeBSD
authorPhilip Withnall <philip@tecnocode.co.uk>
Mon, 3 Nov 2014 09:49:03 +0000 (09:49 +0000)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 5 Nov 2014 12:13:50 +0000 (14:13 +0200)
commitcb00e27039d3b1b4475150b2468066adb99984dc
tree7a6dd8eae014231e98050b929b5118c037490428
parent0953e126d7836781a3310e85c9b5a0e6408b2a49
connection: Fix sendmsg() on FreeBSD

It expects ((msg_controllen == 0) == (msg_control == NULL)), and returns
EINVAL otherwise. It can't hurt to be tidy about things on other platforms
either though.

See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=99356#c5

Signed-off-by: Philip Withnall <philip at tecnocode.co.uk>
Signed-off-by: Karsten Otto <ottoka at posteo.de>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
src/connection.c