[vlc-devel] commit: vod_rtsp: fix segfault if memory allocation fails (Pierre Ynard )
git version control
git at videolan.org
Tue Jun 30 17:08:10 CEST 2009
vlc | branch: master | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 30 17:04:07 2009 +0200| [944b1484fd525bd9b1865718b56f20294940aa63] | committer: Pierre Ynard
vod_rtsp: fix segfault if memory allocation fails
Fix segfault if memory allocation fails
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=944b1484fd525bd9b1865718b56f20294940aa63
---
modules/misc/rtsp.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/modules/misc/rtsp.c b/modules/misc/rtsp.c
index bec5db5..80e27a0 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -1423,6 +1423,13 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
psz_session = psz_new;
p_rtsp = RtspClientNew( p_media, psz_new );
+ if( !p_rtsp )
+ {
+ answer->i_status = 454;
+ answer->i_body = 0;
+ answer->p_body = NULL;
+ break;
+ }
}
else
{
More information about the vlc-devel
mailing list