From: Olle Johansson Date: Thu, 30 Nov 2006 20:51:04 +0000 (+0000) Subject: Issue 8319 - change noncecount before using it. X-Git-Tag: 1.4.0-beta4~51 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76e35bac118bfa3605d76f0ee1d60746278d332b;p=thirdparty%2Fasterisk.git Issue 8319 - change noncecount before using it. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48166 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1e1c2e8ba1..921f92ff7d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7228,7 +7228,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)))