Changeset 2086


Ignore:
Timestamp:
Jun 28, 2008 12:39:58 AM (16 years ago)
Author:
bennylp
Message:

Fixed crash when handling incoming MESSAGE request without message body but with Content/Type? set (thanks Anshuman S. Rawat)

Location:
pjproject/trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c

    r2039 r2086  
    128128    } 
    129129#else 
    130     PJ_UNUSED_ARG(rdata); 
    131     PJ_UNUSED_ARG(p_accept_hdr); 
     130    pjsip_msg *msg; 
     131 
     132    msg = rdata->msg_info.msg; 
     133    if (msg->body == NULL) { 
     134        /* Create Accept header. */ 
     135        if (p_accept_hdr) 
     136            *p_accept_hdr = pjsua_im_create_accept(rdata->tp_info.pool); 
     137 
     138        return PJ_FALSE; 
     139    } 
    132140#endif 
    133141 
Note: See TracChangeset for help on using the changeset viewer.