ctdb-daemon: Do not copy address for RELEASE_IP message
authorMartin Schwenke <martin@meltin.net>
Thu, 11 Aug 2016 03:41:12 +0000 (13:41 +1000)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:28 +0000 (12:27 +0200)
commit471eeecd5afc6b3d0b8ae75c25b16e127478bb0c
treec3876c44f26539e0ec8f8245c1086c146e64e27d
parentc21578317eaa8e64c0ce2303bcca9e7516608c80
ctdb-daemon: Do not copy address for RELEASE_IP message

If there's an allocation failure then the implicit early return in
CTDB_NO_MEMORY_VOID() means that no reply is sent to the control.
ctdb_daemon_send_message() makes a copy of the data, so don't copy it
here and remove an unnecessary chance of failure.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12158

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit e653c8bb4a7bd712351a4ead3997c61b22c46f8d)
ctdb/server/ctdb_takeover.c