From: Olle Johansson Date: Thu, 30 Nov 2006 20:47:53 +0000 (+0000) Subject: Issue 8319 - noriyuki - nonce-count updated *after* use X-Git-Tag: 1.2.14~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e76ee063e68dff0cf654714e59eeb1cd628591b4;p=thirdparty%2Fasterisk.git Issue 8319 - noriyuki - nonce-count updated *after* use git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48165 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1e7f22161d..a09e5ecc8c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5661,7 +5661,8 @@ static int transmit_register(struct sip_registry *r, int sipmethod, char *auth, ast_copy_string(p->domain, r->domain, sizeof(p->domain)); ast_copy_string(p->opaque, r->opaque, sizeof(p->opaque)); ast_copy_string(p->qop, r->qop, sizeof(p->qop)); - p->noncecount = r->noncecount++; + r->noncecount++; + p->noncecount = r->noncecount; memset(digest,0,sizeof(digest)); if(!build_reply_digest(p, sipmethod, digest, sizeof(digest)))