Check peer config (at least, number) after connecting

This commit is contained in:
Vitaliy Filippov
2020-04-21 00:08:54 +03:00
parent 642802b595
commit 6a21ea207e
6 changed files with 69 additions and 8 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ void osd_t::exec_show_config(osd_op_t *cur_op)
std::string cfg_str = json11::Json(config).dump();
cur_op->buf = malloc(cfg_str.size()+1);
memcpy(cur_op->buf, cfg_str.c_str(), cfg_str.size()+1);
cur_op->send_list.push_back(cur_op->buf, cur_op->reply.hdr.retval);
cur_op->send_list.push_back(cur_op->buf, cfg_str.size()+1);
finish_op(cur_op, cfg_str.size()+1);
}