Skip to content

Commit

Permalink
b2b_logic: fix compile error
Browse files Browse the repository at this point in the history
(cherry picked from commit 61401ea)
  • Loading branch information
rvlad-patrascu committed Jul 4, 2023
1 parent ea2f617 commit c7852bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/b2b_logic/b2b_logic_ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ str *b2bl_ctx_get_str(str *key, int pos)
{
str *ret;
b2bl_tuple_t *tuple = b2bl_ctx_get_tuple(key);
static str nullstr = {0,0};

if (!tuple) {
LM_ERR("Failed to retrieve data from b2b logic context\n");
return &STR_NULL;
return &nullstr;
}

ret = context_get_str(CONTEXT_B2B_LOGIC, context_of(tuple), pos);
Expand Down

0 comments on commit c7852bd

Please sign in to comment.