changeset 21536:4d1ba1f391f3

Forgotten closesocket on error, patch by Nicolas Baradakis <nbk sitadelle com>
author reimar
date Sat, 09 Dec 2006 18:57:48 +0000
parents 94ac700b2898
children 21263c9ddd87
files stream/asf_mmst_streaming.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/asf_mmst_streaming.c	Sat Dec 09 18:54:12 2006 +0000
+++ b/stream/asf_mmst_streaming.c	Sat Dec 09 18:57:48 2006 +0000
@@ -626,7 +626,10 @@
 
   asf_header_len = get_header (s, asf_header, stream->streaming_ctrl);
 //  mp_msg(MSGT_NETWORK,MSGL_INFO,"---------------------------------- asf_header %d\n",asf_header);
-  if (asf_header_len==0) return -1; //error reading header
+  if (asf_header_len==0) { //error reading header
+    closesocket(s);
+    return -1;
+  }
   packet_length = interp_header (asf_header, asf_header_len);