Ignore:
Timestamp:
Oct 11, 2007 11:26:12 AM (17 years ago)
Author:
bennylp
Message:

Fixed compilation warnings with AKA implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_auth_aka.c

    r1489 r1492  
    4848    pj_uint8_t xmac[PJSIP_AKA_MACLEN]; 
    4949    pjsip_cred_info aka_cred; 
    50     int i; 
     50    int i, len; 
    5151    pj_status_t status; 
    5252 
     
    6464 
    6565    /* Decode nonce */ 
    66     nonce_bin.slen = PJ_BASE64_TO_BASE256_LEN(chal->nonce.slen); 
     66    nonce_bin.slen = len = PJ_BASE64_TO_BASE256_LEN(chal->nonce.slen); 
    6767    nonce_bin.ptr = pj_pool_alloc(pool, nonce_bin.slen + 1); 
    68     status = pj_base64_decode(&chal->nonce, (pj_uint8_t*)nonce_bin.ptr, 
    69                               &nonce_bin.slen); 
     68    status = pj_base64_decode(&chal->nonce, (pj_uint8_t*)nonce_bin.ptr, &len); 
     69    nonce_bin.slen = len; 
    7070    if (status != PJ_SUCCESS) 
    7171        return PJSIP_EAUTHINNONCE; 
Note: See TracChangeset for help on using the changeset viewer.