messaging3: Avoid messaging_is_self_send
authorVolker Lendecke <vl@samba.org>
Thu, 21 Aug 2014 18:41:49 +0000 (18:41 +0000)
committerJeremy Allison <jra@samba.org>
Fri, 22 Aug 2014 22:24:18 +0000 (00:24 +0200)
commit20ef305cfa8af5437ded8bd093e4f9c487ee82a7
tree2f0df101f2c22be9122d5bc04bc72c5cf482f375
parent46e912210d62baf895c3e526be5109724475b536
messaging3: Avoid messaging_is_self_send

This was a bad API, and it was used in a buggy way: In
messaging_dispatch_rec we always did the defer, we referenced the
destination pid, not the source. In messaging_send_iov this is the right
thing to do to reference the destination, but when we have arrived in
messaging_dispatch_rec we should compare source and destination.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/messages.c