Ignore:
Timestamp:
Jul 1, 2019 7:12:43 AM (5 years ago)
Author:
ming
Message:

Fixed #2209: Insufficient variable storage to contain Expires header field/ parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/test/regc_test.c

    r5678 r6035  
    217217    int         code; 
    218218    pj_bool_t   have_reg; 
    219     int         expiration; 
     219    unsigned    expiration; 
    220220    unsigned    contact_cnt; 
    221221    pj_bool_t   auth; 
     
    228228 
    229229    /* Additional results */ 
    230     int         interval; 
    231     int         next_reg; 
     230    unsigned    interval; 
     231    unsigned    next_reg; 
    232232}; 
    233233 
     
    251251        return; 
    252252 
    253     client->have_reg = info.auto_reg && info.interval>0 && 
    254                        param->expiration>0; 
     253    client->have_reg = info.auto_reg && 
     254                       info.interval != PJSIP_EXPIRES_NOT_SPECIFIED && 
     255                       param->expiration != PJSIP_EXPIRES_NOT_SPECIFIED; 
    255256    client->expiration = param->expiration; 
    256257    client->contact_cnt = param->contact_cnt; 
Note: See TracChangeset for help on using the changeset viewer.