NVMe Fabrics RDMA: Initialize a variable.

Make sure q_ctx is fully initialized. Fixes #17233.
This commit is contained in:
Gerald Combs 2021-02-15 10:28:57 -08:00
parent ef03a3b4ea
commit e29c934d72
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ find_add_q_ctx(packet_info *pinfo, conversation_t *conv)
q_ctx = (struct nvme_rdma_q_ctx*)conversation_get_proto_data(conv, proto_nvme_rdma);
if (!q_ctx) {
qid = find_nvme_qid(pinfo);
q_ctx = wmem_new(wmem_file_scope(), struct nvme_rdma_q_ctx);
q_ctx = wmem_new0(wmem_file_scope(), struct nvme_rdma_q_ctx);
q_ctx->n_q_ctx.pending_cmds = wmem_tree_new(wmem_file_scope());
q_ctx->n_q_ctx.done_cmds = wmem_tree_new(wmem_file_scope());
q_ctx->n_q_ctx.data_requests = wmem_tree_new(wmem_file_scope());