aboutsummaryrefslogtreecommitdiffstats
path: root/main/pbx.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 19:26:54 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-16 19:26:54 +0000
commit414b63e2848bb0ccebd27c5cf3c4b22a5fed33db (patch)
treeafa40b75cca7cf2a95ebef44442d818f9937f917 /main/pbx.c
parent2efc505dda442537688b8a34a7e8b4aad62bc353 (diff)
This corrects a hashtab removal, given a bad argument
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89330 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index 359d2b0c9..6f6ef0de3 100644
--- a/main/pbx.c
+++ b/main/pbx.c
@@ -5569,7 +5569,7 @@ static int add_pri(struct ast_context *con, struct ast_exten *tmp,
ast_hashtab_remove_object_via_lookup(tmp->peer_label_tree,e);
if (tmp->label)
ast_hashtab_insert_safe(tmp->peer_label_tree,tmp);
- ast_hashtab_remove_object_via_lookup(con->root_tree, e->exten);
+ ast_hashtab_remove_object_via_lookup(con->root_tree, e);
ast_hashtab_insert_safe(con->root_tree, tmp->exten);
el->next = tmp;
} else { /* We're the very first extension. */
@@ -5583,7 +5583,7 @@ static int add_pri(struct ast_context *con, struct ast_exten *tmp,
ast_hashtab_remove_object_via_lookup(tmp->peer_label_tree,e);
if (tmp->label)
ast_hashtab_insert_safe(tmp->peer_label_tree,tmp);
- ast_hashtab_remove_object_via_lookup(con->root_tree, e->exten);
+ ast_hashtab_remove_object_via_lookup(con->root_tree, e);
ast_hashtab_insert_safe(con->root_tree, tmp->exten);
con->root = tmp;
}