Rev 465: use the right IP from the passed structure in
takeip/releaseip calls in http://samba.org/~tridge/ctdb
tridge at samba.org
tridge at samba.org
Mon Jun 4 13:54:57 GMT 2007
------------------------------------------------------------
revno: 465
revision-id: tridge at samba.org-20070604135456-kgsjednglc6u2pqi
parent: tridge at samba.org-20070604135446-vk2w3jilvbo4nlnk
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge
timestamp: Mon 2007-06-04 23:54:56 +1000
message:
use the right IP from the passed structure in takeip/releaseip calls
modified:
takeover/ctdb_takeover.c ctdb_takeover.c-20070525071636-a5n1ihghjtppy08r-2
=== modified file 'takeover/ctdb_takeover.c'
--- a/takeover/ctdb_takeover.c 2007-06-04 12:28:52 +0000
+++ b/takeover/ctdb_takeover.c 2007-06-04 13:54:56 +0000
@@ -180,7 +180,7 @@
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 @@
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",
More information about the samba-cvs
mailing list