diff options
author | Andrew Tridgell <tridge@samba.org> | 2007-04-11 22:17:24 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2007-04-11 22:17:24 +1000 |
commit | d0be3abcf71ab3b51d98c0ed4548cb78bdefb9ba (patch) | |
tree | 84d79f214e4d8e34434c30ed9ff2e41638abb084 /ctdb/common/ctdb_daemon.c | |
parent | 473ca4e3f7c35ccefc54852337778f5afe3949b3 (diff) | |
parent | 2597931dfdfa29d99cbf2b50b465fc85a41c29c8 (diff) | |
download | samba-d0be3abcf71ab3b51d98c0ed4548cb78bdefb9ba.tar.gz samba-d0be3abcf71ab3b51d98c0ed4548cb78bdefb9ba.tar.xz samba-d0be3abcf71ab3b51d98c0ed4548cb78bdefb9ba.zip |
merge from volker
(This used to be ctdb commit 68bc5b4d0d2049ebcee19338f744efd5b129725a)
Diffstat (limited to 'ctdb/common/ctdb_daemon.c')
-rw-r--r-- | ctdb/common/ctdb_daemon.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/common/ctdb_daemon.c b/ctdb/common/ctdb_daemon.c index 6e9fbedb2f..72ab7ed0b1 100644 --- a/ctdb/common/ctdb_daemon.c +++ b/ctdb/common/ctdb_daemon.c @@ -283,6 +283,11 @@ static void ctdb_client_read_cb(uint8_t *data, size_t cnt, void *args) struct ctdb_client *client = talloc_get_type(args, struct ctdb_client); struct ctdb_req_header *hdr; + if (cnt == 0) { + talloc_free(client); + return; + } + if (cnt < sizeof(*hdr)) { ctdb_set_error(client->ctdb, "Bad packet length %d\n", cnt); return; |