diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-28 20:22:25 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-28 20:22:25 +0000 |
commit | caa0ae35786144899b41a3f25e0cdb954ab66f74 (patch) | |
tree | 8549bc03be877c5b9312c90be6d212abd378508e /channels | |
parent | e9d045fd5e8778e04ff308ff348fac0e5b0a2896 (diff) |
fix a bug introduced in 15187 that scrambled the flags and
among other things prevented proper handling of NAT.
Don't think it exist in 1.2 but be careful if 15187 is merged.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15744 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7ec37e6d2..634f979f9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7283,7 +7283,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme } if (!(res = check_auth(p, req, user->name, user->secret, user->md5secret, sipmethod, uri, reliable, ignore))) { sip_cancel_destroy(p); - ast_copy_flags(&p->flags[0], &user->flags[1], SIP_FLAGS_TO_COPY); + ast_copy_flags(&p->flags[0], &user->flags[0], SIP_FLAGS_TO_COPY); ast_copy_flags(&p->flags[1], &user->flags[1], SIP_PAGE2_FLAGS_TO_COPY); /* Copy SIP extensions profile from INVITE */ if (p->sipoptions) |