summaryrefslogtreecommitdiff
path: root/source4/cluster/ctdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-02-06 04:45:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:41 -0500
commitef80bc34c1b0e0badc38f46069cf47048e0b23e8 (patch)
tree3f21fa9a6a90612252d6be2ec30f123522765cb5 /source4/cluster/ctdb
parentb9f10ebb99a76820085af514b102ff75a5694c57 (diff)
downloadsamba-ef80bc34c1b0e0badc38f46069cf47048e0b23e8.tar.gz
samba-ef80bc34c1b0e0badc38f46069cf47048e0b23e8.tar.bz2
samba-ef80bc34c1b0e0badc38f46069cf47048e0b23e8.zip
r21172: fixed a comment
(This used to be commit 2d6e082e813e18dcd43bc8d9a8f445f77e0a8452)
Diffstat (limited to 'source4/cluster/ctdb')
-rw-r--r--source4/cluster/ctdb/common/ctdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/cluster/ctdb/common/ctdb.c b/source4/cluster/ctdb/common/ctdb.c
index 94715f6226..ecef14bca4 100644
--- a/source4/cluster/ctdb/common/ctdb.c
+++ b/source4/cluster/ctdb/common/ctdb.c
@@ -175,6 +175,7 @@ int ctdb_start(struct ctdb_context *ctdb)
static void ctdb_recv_pkt(struct ctdb_context *ctdb, uint8_t *data, uint32_t length)
{
struct ctdb_req_header *hdr;
+
if (length < sizeof(*hdr)) {
ctdb_set_error(ctdb, "Bad packet length %d\n", length);
return;
@@ -229,7 +230,7 @@ static void ctdb_node_dead(struct ctdb_node *node)
}
/*
- called by the transport layer when a node is dead
+ called by the transport layer when a node is connected
*/
static void ctdb_node_connected(struct ctdb_node *node)
{