[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:23 CEST 2009
vlc | branch: 1.0-bugfix | Pierre Ynard <linkfanel at yahoo.fr> | Tue Jun 30 17:04:07 2009 +0200| [7499dd6bd738024e6bd261b06983827b2fb29f8d] | committer: Pierre Ynard
vod_rtsp: fix segfault if memory allocation fails
Fix segfault if memory allocation fails
(cherry picked from commit 944b1484fd525bd9b1865718b56f20294940aa63)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7499dd6bd738024e6bd261b06983827b2fb29f8d
---
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 864d665..34ed058 100644
--- a/modules/misc/rtsp.c
+++ b/modules/misc/rtsp.c
@@ -1424,6 +1424,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