From: Steve Murphy Date: Fri, 16 Nov 2007 19:26:54 +0000 (+0000) Subject: This corrects a hashtab removal, given a bad argument X-Git-Tag: 1.6.0-beta1~3^2~847 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab32ff2ad810edf5db0f944454c258b605903b27;p=thirdparty%2Fasterisk.git This corrects a hashtab removal, given a bad argument git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89330 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index 359d2b0c98..6f6ef0de39 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; }