Fix lengthy SDP buffer allocation

This commit is contained in:
Guillaume BIENKOWSKI 2015-01-23 16:26:57 +01:00
parent 7acf4df883
commit f65ec2e2e9

View file

@ -97,6 +97,7 @@ static int set_sdp(belle_sip_message_t *msg,belle_sdp_session_description_t* ses
error = belle_sip_object_marshal(BELLE_SIP_OBJECT(session_desc),buff,bufLen,&length);
if( error != BELLE_SIP_OK ){
bufLen *= 2;
length = 0;
buff = belle_sip_realloc(buff,bufLen);
}
}