From ef80bc34c1b0e0badc38f46069cf47048e0b23e8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 6 Feb 2007 04:45:26 +0000 Subject: r21172: fixed a comment (This used to be commit 2d6e082e813e18dcd43bc8d9a8f445f77e0a8452) --- source4/cluster/ctdb/common/ctdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit