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/include/pjsip-ua/sip_regc.h

    r5356 r6035  
    5252 
    5353/** Expiration not specified. */ 
    54 #define PJSIP_REGC_EXPIRATION_NOT_SPECIFIED     ((pj_uint32_t)0xFFFFFFFFUL) 
     54#define PJSIP_REGC_EXPIRATION_NOT_SPECIFIED     PJSIP_EXPIRES_NOT_SPECIFIED 
    5555 
    5656/** Buffer to hold all contacts. */ 
     
    7575    pj_str_t             reason;    /**< SIP reason phrase received.        */ 
    7676    pjsip_rx_data       *rdata;     /**< The complete received response.    */ 
    77     int                  expiration;/**< Next expiration interval.          */ 
     77    unsigned             expiration;/**< Next expiration interval, 
     78                                         PJSIP_REGC_EXPIRATION_NOT_SPECIFIED 
     79                                         if not specified.                  */ 
    7880    int                  contact_cnt;/**<Number of contacts in response.    */ 
    7981    pjsip_contact_hdr   *contact[PJSIP_REGC_MAX_CONTACT]; /**< Contacts.    */ 
     
    110112    pj_bool_t   is_busy;    /**< Have pending transaction?                  */ 
    111113    pj_bool_t   auto_reg;   /**< Will register automatically?               */ 
    112     int         interval;   /**< Registration interval (seconds).           */ 
    113     int         next_reg;   /**< Time until next registration (seconds).    */ 
     114    unsigned    interval;   /**< Registration interval (seconds).           */ 
     115    unsigned    next_reg;   /**< Time until next registration (seconds).    */ 
    114116    pjsip_transport *transport; /**< Last transport used.                   */ 
    115117}; 
Note: See TracChangeset for help on using the changeset viewer.