Changeset 1234


Ignore:
Timestamp:
Apr 30, 2007 11:37:53 AM (17 years ago)
Author:
bennylp
Message:

Fixed nc generation in digest authentication with qop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/symbian/pjsip/src/pjsip/sip_auth_client.c

    r789 r1234  
    229229        cred->qop = pjsip_AUTH_STR; 
    230230        cred->nc.ptr = (char*)pj_pool_alloc(pool, 16); 
    231         pj_ansi_snprintf(cred->nc.ptr, 16, "%06u", nc); 
     231        cred->nc.slen = pj_ansi_snprintf(cred->nc.ptr, 16, "%06u", nc); 
     232        pj_assert(cred->nc.slen == 6); 
    232233 
    233234        if (cnonce && cnonce->slen) { 
Note: See TracChangeset for help on using the changeset viewer.