cluster/cman/daemon commands.c
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: pcaulfield at sourceware.org 2006-09-12 12:45:52
Modified files:
cman/daemon : commands.c
Log message:
Fix strdup braindamage that probably caused segfaults when nodes left the cluster.
This is likely to be the cause of bz#206083 (thanks to Steven Dake for most of the diagnostics on this).
cman/daemon/commands.c +1 -1
@@ -1644,7 +1644,7 @@if (node->fence_agent && msg->fence_agent[0 ] &&strcmp (node->fence_agent, msg->fence_agent)) {free (node->fence_agent); -strdup (node->fence_agent); + node->fence_agent =strdup (msg->fence_agent); node->fence_time = msg->fence_time; }