From f65ec2e2e92d8f408173a27d36db1058e63de01b Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Fri, 23 Jan 2015 16:26:57 +0100 Subject: [PATCH] Fix lengthy SDP buffer allocation --- coreapi/bellesip_sal/sal_op_call.c | 1 + 1 file changed, 1 insertion(+) diff --git a/coreapi/bellesip_sal/sal_op_call.c b/coreapi/bellesip_sal/sal_op_call.c index da9871cec..4aca82a81 100644 --- a/coreapi/bellesip_sal/sal_op_call.c +++ b/coreapi/bellesip_sal/sal_op_call.c @@ -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); } }