Package: heartbeat
Severity: important
Tags: patch

The ping_group command is not working in heartbeat version 1.2.5.
The problem is located in ping_command.c.

A usable patch is:

diff -ruN heartbeat-1.2.5.orig/lib/plugins/HBcomm/ping_group.c 
heartbeat-1.2.5/lib/plugins/HBcomm/ping_group.c
--- heartbeat-1.2.5.orig/lib/plugins/HBcomm/ping_group.c        2005-08-10 
06:08:17.000000000 +0200
+++ heartbeat-1.2.5/lib/plugins/HBcomm/ping_group.c     2006-11-14 
13:40:26.000000000 +0100
@@ -477,7 +477,7 @@
        for(node = ei->node; node; node = node->next) {
                if(!memcmp(&(their_addr.sin_addr), &(node->addr.sin_addr),
                                        sizeof(struct in_addr))) {
-                       goto ReRead;    /* Not ours */
+                       break;
                }
        }
        if(!node) {


The patch is taken from:

http://www.gossamer-threads.com/lists/linuxha/dev/34790#34790

Thanks to Wolfgang Dumhs for debugging the problem.


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.13.2-ads
Locale: LANG=en_US, LC_CTYPE=de_DE (charmap=ISO-8859-1)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to