Commit eea1cddc authored by Pierre Ynard's avatar Pierre Ynard

rtsp: fix socket leak

A socket is leaked when the client passes a wrong session identifier.
A remote attacker could craft malicious RTSP requests and...
parent 7c5348b6
...@@ -596,6 +596,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id, ...@@ -596,6 +596,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
{ {
answer->i_status = 454; answer->i_status = 454;
vlc_mutex_unlock( &rtsp->lock ); vlc_mutex_unlock( &rtsp->lock );
net_Close( track.fd );
continue; continue;
} }
} }
......
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