s3:unix_msg: simplify queue_msg() by moving space calculations up.
authorMichael Adam <obnox@samba.org>
Mon, 29 Sep 2014 10:27:37 +0000 (12:27 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 14:36:10 +0000 (16:36 +0200)
commit67684dc69585559fae6718837bf6c5ba83af267f
tree1297f33e01882102eb8db522e267cced93936b63
parenta96f0f4c3bd66cb44f882a836bf80b2ce39523e0
s3:unix_msg: simplify queue_msg() by moving space calculations up.

This allows for early direct return instead of the goto invalid,
since the fds_copy array is filled later.

Pair-Programmed-With: Volker Lendecke <vl@samba.org>
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/lib/unix_msg/unix_msg.c