aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pbx.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/pbx.c b/pbx.c
index 0aaea68cc..9080e4d81 100644
--- a/pbx.c
+++ b/pbx.c
@@ -4363,14 +4363,14 @@ int ast_add_extension2(struct ast_context *con,
break;
}
if (e && res == 0) { /* exact match, insert in the pri chain */
- int ret = add_pri(con, tmp, el, e, replace);
- ast_mutex_unlock(&con->lock);
- if (ret < 0)
- errno = EEXIST;
- else {
- LOG;
- }
- return ret;
+ int ret = add_pri(con, tmp, el, e, replace);
+ ast_mutex_unlock(&con->lock);
+ if (ret < 0)
+ errno = EEXIST;
+ else {
+ LOG;
+ }
+ return ret;
}
/*
* not an exact match, this is the first entry with this pattern,