avoid crash if SIP request cannot be created

This commit is contained in:
Jehan Monnier 2013-07-02 16:37:42 +02:00
parent df87ec318a
commit 8b674d05e3

View file

@ -268,6 +268,9 @@ static int _sal_op_send_request_with_contact(SalOp* op, belle_sip_request_t* req
int sal_op_send_request(SalOp* op, belle_sip_request_t* request) {
bool_t need_contact=FALSE;
if (request==NULL) {
return -1; /*sanity check*/
}
/*
Header field where proxy ACK BYE CAN INV OPT REG
___________________________________________________________