From: Luigi Rizzo Date: Tue, 28 Mar 2006 20:22:25 +0000 (+0000) Subject: fix a bug introduced in 15187 that scrambled the flags and X-Git-Tag: 1.4.0-beta1~2285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84e5cfd43699dac93bc08a407154cbb3e606d02;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/trunk@15744 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 7ec37e6d2d..634f979f9a 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)