From cc4d2ccbd165016872fd379fbacce930b09a5d43 Mon Sep 17 00:00:00 2001 From: pl Date: Tue, 25 Dec 2001 16:35:57 +0000 Subject: [PATCH] possible uninit pointer free()'d possible bad pointer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3733 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/network.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libmpdemux/network.c b/libmpdemux/network.c index 0abb5ddb1e..63a726ea2c 100644 --- a/libmpdemux/network.c +++ b/libmpdemux/network.c @@ -451,10 +451,9 @@ nop_streaming_start( stream_t *stream ) { fd = -1; } stream->fd = fd; + http_free( http_hdr ); } - http_free( http_hdr ); - stream->streaming_ctrl->streaming_read = nop_streaming_read; stream->streaming_ctrl->streaming_seek = nop_streaming_seek; stream->streaming_ctrl->prebuffer_size = 180000; @@ -543,7 +542,7 @@ rtp_streaming_start( stream_t *stream ) { streaming_ctrl_t *streaming_ctrl; int fd; - if( streaming_ctrl==NULL ) return -1; + if( stream==NULL ) return -1; streaming_ctrl = stream->streaming_ctrl; fd = stream->fd;