[vlc-commits] commit: sout_httplive: fix free of uninitialized pointer. ( Rémi Duraffort )

git at videolan.org git at videolan.org
Sat Oct 23 19:14:44 CEST 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Oct 23 19:13:52 2010 +0200| [b528f5959085a4d96c5a98838bde1ccb0908cb1e] | committer: Rémi Duraffort 

sout_httplive: fix free of uninitialized pointer.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b528f5959085a4d96c5a98838bde1ccb0908cb1e
---

 modules/stream_filter/httplive.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 51ee480..76c9795 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -540,7 +540,7 @@ static int get_HTTPLivePlaylist(stream_t *s, hls_stream_t *hls)
 
     /* Download new playlist file from server */
     if (AccessOpen(s, &hls->url) != VLC_SUCCESS)
-        goto error;
+        return VLC_EGENERIC;
 
     /* Parse the rest of the reply */
     uint8_t *tmp = calloc(1, HTTPLIVE_MAX_LINE);



More information about the vlc-commits mailing list