We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6786b8e commit 7c93e59Copy full SHA for 7c93e59
1 file changed
context.c
@@ -151,7 +151,7 @@ int push_new_global_context(void)
151
{
152
if (ctx_stack_idx==CTX_STACK_SIZE) {
153
LM_ERR("too many stacked contexts (%d)\n",ctx_stack_idx);
154
- return -1;
+ return 0;
155
}
156
157
ctx_stack[ctx_stack_idx++] = current_processing_ctx;
@@ -160,11 +160,11 @@ int push_new_global_context(void)
160
if (!current_processing_ctx) {
161
LM_ERR("oom\n");
162
current_processing_ctx = ctx_stack[--ctx_stack_idx];
163
164
165
166
memset(current_processing_ctx, 0, context_size(CONTEXT_GLOBAL));
167
- return 0;
+ return 1;
168
169
170
int pop_pushed_global_context(void)
0 commit comments