diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-02-06 04:45:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:44:41 -0500 |
commit | ef80bc34c1b0e0badc38f46069cf47048e0b23e8 (patch) | |
tree | 3f21fa9a6a90612252d6be2ec30f123522765cb5 /source4/cluster/ctdb/common | |
parent | b9f10ebb99a76820085af514b102ff75a5694c57 (diff) | |
download | samba-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/common')
-rw-r--r-- | source4/cluster/ctdb/common/ctdb.c | 3 |
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) { |