diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:47:53 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 20:47:53 +0000 |
commit | b0077fd46873ca77ce2f59e9c91bbf08bba4ec52 (patch) | |
tree | 930cca2bf6f01df6a76e235541dc69e4a79cabe5 | |
parent | 365e5cf843f02dc117f130415ee38af373806df9 (diff) |
Issue 8319 - noriyuki - nonce-count updated *after* use
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48165 f38db490-d61c-443f-a65b-d21fe96a405b
-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 1e7f22161..a09e5ecc8 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))) |