1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

use the right IP from the passed structure in takeip/releaseip calls

(This used to be ctdb commit 3db5ba681b11d9ce6474938f221fe68d55a6e1ad)
This commit is contained in:
Andrew Tridgell 2007-06-04 23:54:56 +10:00
parent 7498d3c55d
commit e95215850b

View File

@ -180,7 +180,7 @@ int32_t ctdb_control_takeover_ip(struct ctdb_context *ctdb,
state->c = talloc_steal(ctdb, c);
state->sin = talloc(ctdb, struct sockaddr_in);
CTDB_NO_MEMORY(ctdb, state->sin);
*state->sin = *(struct sockaddr_in *)indata.dptr;
*state->sin = pip->sin;
DEBUG(0,("Takover of IP %s/%u on interface %s\n",
ip, ctdb->nodes[ctdb->vnn]->public_netmask_bits,
@ -284,7 +284,7 @@ int32_t ctdb_control_release_ip(struct ctdb_context *ctdb,
state->c = talloc_steal(state, c);
state->sin = talloc(state, struct sockaddr_in);
CTDB_NO_MEMORY(ctdb, state->sin);
*state->sin = *(struct sockaddr_in *)indata.dptr;
*state->sin = pip->sin;
ret = ctdb_event_script_callback(ctdb, state, release_ip_callback, state,
"releaseip %s %s %u",