[vlc-commits] commit: rtsp: fix socket leak (Pierre Ynard )
git at videolan.org
git at videolan.org
Sun Oct 24 10:21:19 CEST 2010
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Sun Oct 24 10:17:13 2010 +0200| [eea1cddcb651c874e66999a91962da3b3f85bed5] | committer: 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...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eea1cddcb651c874e66999a91962da3b3f85bed5
---
modules/stream_out/rtsp.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/stream_out/rtsp.c b/modules/stream_out/rtsp.c
index a1cc953..4760478 100644
--- a/modules/stream_out/rtsp.c
+++ b/modules/stream_out/rtsp.c
@@ -596,6 +596,7 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
{
answer->i_status = 454;
vlc_mutex_unlock( &rtsp->lock );
+ net_Close( track.fd );
continue;
}
}
More information about the vlc-commits
mailing list