Commit ae5de69e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Relax c= parsing so that it does not reject valid IPv6 announces

parent 106696e0
......@@ -960,16 +960,12 @@ static int ParseConnection( vlc_object_t *p_obj, sdp_t *p_sdp )
psz_eof = strchr( psz_parse, '/' );
if( psz_eof )
{
*psz_eof = '\0';
}
else
{
msg_Dbg( p_obj, "incorrect c field, %s", p_sdp->psz_connection );
}
if( p_sdp->i_in == 6 && ( isxdigit( *psz_parse ) || *psz_parse == ':' ) )
if( p_sdp->i_in == 6 )
{
asprintf( &psz_uri, "[%s]", psz_parse );
if( asprintf( &psz_uri, "[%s]", psz_parse ) == -1 )
psz_uri = NULL;
}
else psz_uri = strdup( psz_parse );
......
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