From a32c03f3fd98bdfb537d357a0d7f82e38cae520a Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Mon, 24 Oct 2016 10:56:03 +0300 Subject: [PATCH] sdp: inherit stream's family from session Fixes coverity CID 150496 --- parser/sdp/sdp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parser/sdp/sdp.c b/parser/sdp/sdp.c index 918c155f3c5..569710ab1fa 100644 --- a/parser/sdp/sdp.c +++ b/parser/sdp/sdp.c @@ -429,6 +429,8 @@ int parse_sdp_session(str *sdp_body, int session_num, str *cnt_disp, sdp_info_t* LM_ERR("can't find media IP in the message\n"); return -1; } + /* take the family from the more specific line */ + pf = session->pf; } /* Extract the port on sdp_port */