Skip to content

Commit

Permalink
tm: cleanup replicated cancel msg
Browse files Browse the repository at this point in the history
Fixes Coverity CID #200031
  • Loading branch information
razvancrainea committed Jul 20, 2020
1 parent 2e67a65 commit 8bf39d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/tm/cluster.c
Expand Up @@ -55,6 +55,9 @@ static void tm_repl_cancel(bin_packet_t *packet, str *buf, struct receive_info *
struct via_body via;
struct via_param branch;

/* cleanup the structure */
memset(&msg, 0, sizeof(msg));

msg.REQ_METHOD = METHOD_CANCEL;

msg.via1 = &via;
Expand Down

0 comments on commit 8bf39d3

Please sign in to comment.