aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 17:20:09 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-20 17:20:09 +0000
commit0c75e3aa197e57040608e21d795fa66455b2fa93 (patch)
tree26a67f1a31a9303ababe283fa1f65850d673b42a
parentb9d1db611548f8f348436856d6a92da500316959 (diff)
Merged revisions 76080 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r76080 | file | 2007-07-20 14:16:48 -0300 (Fri, 20 Jul 2007) | 6 lines (closes issue #10247) Reported by: fkasumovic Patches: chan_sip.patch uploaded by fkasumovic (license #101) Drop any peer realm authentication entries when reloading so multiple entries do not get added to the peer. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@76087 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 8a63a25a7..8bd7b679f 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -16141,6 +16141,11 @@ static struct sip_peer *build_peer(const char *name, struct ast_variable *v, str
peer->chanvars = NULL;
/* XXX should unregister ? */
}
+
+ /* If we have realm authentication information, remove them (reload) */
+ clear_realm_authentication(peer->auth);
+ peer->auth = NULL;
+
for (; v || ((v = alt) && !(alt=NULL)); v = v->next) {
if (handle_common_options(&peerflags[0], &mask[0], v))
continue;