Skip to content

Commit

Permalink
proto_hep: clear context in case of error
Browse files Browse the repository at this point in the history
Thanks go to Jonathan Hulme from ConnexCS for reporting and providing
valuable troubleshooting information

(cherry picked from commit ff2923c)
  • Loading branch information
razvancrainea committed Feb 28, 2024
1 parent 5393f19 commit c57dfe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/proto_hep/proto_hep.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,11 @@ static int hep_udp_read_req(struct socket_info *si, int* bytes_read)
* needed */
set_global_context(ctx);
ret=run_hep_cbs();
set_global_context(NULL);
if (ret < 0) {
LM_ERR("failed to run hep callbacks\n");
return -1;
}
set_global_context(NULL);

if (hep_ctx->h.version == 3) {
/* HEPv3 */
Expand Down

0 comments on commit c57dfe4

Please sign in to comment.