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-apps/src/samples/sipecho.c

    r5241 r6035  
    435435        pjsip_hdr hdr_list, *h; 
    436436        pjsip_msg *msg; 
    437         int expires = -1; 
     437        unsigned expires = PJSIP_EXPIRES_NOT_SPECIFIED; 
    438438 
    439439        pj_list_init(&hdr_list); 
     
    445445            PJ_LOG(3,(THIS_FILE, " Expires=%d", expires)); 
    446446        } 
    447         if (expires != 0) { 
     447        if (expires != 0 && expires != PJSIP_EXPIRES_NOT_SPECIFIED) { 
    448448            h = (pjsip_hdr*)pjsip_msg_find_hdr(msg, PJSIP_H_CONTACT, NULL); 
    449449            if (h) 
Note: See TracChangeset for help on using the changeset viewer.