summaryrefslogtreecommitdiffstats
path: root/ctdb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-02-07 13:26:07 +1100
committerAndrew Tridgell <tridge@samba.org>2007-02-07 13:26:07 +1100
commit979ef2832ae1c65d636c78dd83c5261f97ce208a (patch)
tree8b9a8ee7f98ee4cdb1aff90422cd3fd06338ee2a /ctdb/common
parentc16b53025725828d5b3637ecdf1280dc87ee9305 (diff)
downloadsamba-979ef2832ae1c65d636c78dd83c5261f97ce208a.tar.gz
samba-979ef2832ae1c65d636c78dd83c5261f97ce208a.tar.xz
samba-979ef2832ae1c65d636c78dd83c5261f97ce208a.zip
merged from samba4 ctdb
(This used to be ctdb commit 677fd2a7758b743ea920d0b3adb85fbb3f1ff49e)
Diffstat (limited to 'ctdb/common')
-rw-r--r--ctdb/common/ctdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ctdb/common/ctdb.c b/ctdb/common/ctdb.c
index 94715f6226..ecef14bca4 100644
--- a/ctdb/common/ctdb.c
+++ b/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)
{