diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:51:04 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:51:04 +0000 |
commit | 74ad2ee9b28a6c2ae1560ab25fd344f24fa2fb54 (patch) | |
tree | bb11f1c3f6647d079acde66df1411baa28b85001 /channels | |
parent | 38473059d4a032ee1ec4ebc2043a2ff736b02603 (diff) |
Issue 8319 - change noncecount before using it.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48166 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 1e1c2e8ba..921f92ff7 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))) |