diff options
author | David Teigland <teigland@redhat.com> | 2008-02-21 14:39:57 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2008-02-21 16:19:54 -0500 |
commit | 599e0f584de8ff16b1428e2e16118757619f1d1b (patch) | |
tree | 2c7cc24266290200cedf732b8bca28cc1b266583 /fs/dlm/rcom.c | |
parent | e80af3a8dbbbf431b2070cc760699f01c5a6ac69 (diff) |
dlm: fix rcom_names message to self
The recent patch to validate data lengths in rcom_names messages
failed to account for fake messages a node directs to itself before
ever sending it. In this case we need to fill in the message length
in the header for the validation code to use.
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/rcom.c')
-rw-r--r-- | fs/dlm/rcom.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/dlm/rcom.c b/fs/dlm/rcom.c index 035e6f9990b0..67522c268c14 100644 --- a/fs/dlm/rcom.c +++ b/fs/dlm/rcom.c | |||
@@ -215,6 +215,8 @@ int dlm_rcom_names(struct dlm_ls *ls, int nodeid, char *last_name, int last_len) | |||
215 | ls->ls_recover_nodeid = nodeid; | 215 | ls->ls_recover_nodeid = nodeid; |
216 | 216 | ||
217 | if (nodeid == dlm_our_nodeid()) { | 217 | if (nodeid == dlm_our_nodeid()) { |
218 | ls->ls_recover_buf->rc_header.h_length = | ||
219 | dlm_config.ci_buffer_size; | ||
218 | dlm_copy_master_names(ls, last_name, last_len, | 220 | dlm_copy_master_names(ls, last_name, last_len, |
219 | ls->ls_recover_buf->rc_buf, | 221 | ls->ls_recover_buf->rc_buf, |
220 | max_size, nodeid); | 222 | max_size, nodeid); |