Skip to content

Commit

Permalink
Prevent use after free in benchmark util
Browse files Browse the repository at this point in the history
  • Loading branch information
davidvossel committed Jul 22, 2013
1 parent a6b41b2 commit a9b54d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/bms.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ static int32_t s1_msg_process_fn(qb_ipcs_connection_t *c,
sizeof(response));
if (res < 0) {
qb_perror(LOG_ERR, "qb_ipcs_response_send");
return res;
}
}
if (events) {
res = qb_ipcs_event_send(c, &response,
sizeof(response));
if (res < 0) {
qb_perror(LOG_ERR, "qb_ipcs_event_send");
return res;
}
}
return 0;
Expand Down

0 comments on commit a9b54d0

Please sign in to comment.