Commit 8d150254 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩
Browse files

Fix issue where message parsed wasn't null but still incorrect

parent 38ef8808
......@@ -184,7 +184,7 @@ int belle_sip_channel_process_data(belle_sip_channel_t *obj,unsigned int revents
obj->input_stream.msg=belle_sip_message_parse_raw(obj->input_stream.read_ptr
,obj->input_stream.write_ptr-obj->input_stream.read_ptr
,&message_size);
if (obj->input_stream.msg){
if (obj->input_stream.msg && message_size > 0){
belle_sip_object_ref(obj->input_stream.msg);
if (belle_sip_message_is_request(obj->input_stream.msg)) fix_incoming_via(BELLE_SIP_REQUEST(obj->input_stream.msg),obj->peer);
/*check for body*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment