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 c31a591 commit dcfa9d3
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 @@ -886,11 +886,11 @@ static int hep_udp_read_req(struct socket_info *si, int* bytes_read)
* needed */
current_processing_ctx = ctx;
ret=run_hep_cbs();
current_processing_ctx = NULL;
if (ret < 0) {
LM_ERR("failed to run hep callbacks\n");
return -1;
}
current_processing_ctx = NULL;

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

0 comments on commit dcfa9d3

Please sign in to comment.