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)
committerMartin Schwenke <martins@samba.org>
Wed, 17 Aug 2016 21:00:26 +0000 (23:00 +0200)
commite653c8bb4a7bd712351a4ead3997c61b22c46f8d
tree22e1eaf02b1e694a7c5526ea21cc9c14e9b44940
parentca22373231918dab4e94cf1bab03253aadd61993
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>
ctdb/server/ctdb_takeover.c