diff options
author | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-25 16:35:57 +0000 |
---|---|---|
committer | pl <pl@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-12-25 16:35:57 +0000 |
commit | cc4d2ccbd165016872fd379fbacce930b09a5d43 (patch) | |
tree | 1c9e219ccc09c1f06410707c6ea513e08fa50134 /libmpdemux/network.c | |
parent | 8e368a8571409b7ddb8db2d633003f6da8fd4f27 (diff) | |
download | mpv-cc4d2ccbd165016872fd379fbacce930b09a5d43.tar.bz2 mpv-cc4d2ccbd165016872fd379fbacce930b09a5d43.tar.xz |
possible uninit pointer free()'d
possible bad pointer
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3733 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux/network.c')
-rw-r--r-- | libmpdemux/network.c | 5 |
1 files 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; |