Issue #8319 (imported from 1.2, 1.4) - Increment nonce-count properly (noriyuki)
authorOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 20:55:43 +0000 (20:55 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 20:55:43 +0000 (20:55 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@48167 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4c8ce28..fd72a85 100644 (file)
@@ -7347,7 +7347,8 @@ static int transmit_register(struct sip_registry *r, int sipmethod, const char *
                ast_string_field_set(p, domain, r->domain);
                ast_string_field_set(p, opaque, r->opaque);
                ast_string_field_set(p, qop, r->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)))