[MPlayer-cvslog] r21581 - trunk/stream/http.c

reimar subversion at mplayerhq.hu
Sun Dec 10 20:35:39 CET 2006


Author: reimar
Date: Sun Dec 10 20:35:39 2006
New Revision: 21581

Modified:
   trunk/stream/http.c

Log:
Make sure stream->fd is set correct (esp. to -1 on error when fd is closed)


Modified: trunk/stream/http.c
==============================================================================
--- trunk/stream/http.c	(original)
+++ trunk/stream/http.c	Sun Dec 10 20:35:39 2006
@@ -744,7 +744,6 @@
 			goto err_out;
 		}
 
-		stream->fd=fd;
 		if( mp_msg_test(MSGT_NETWORK,MSGL_V) ) {
 			http_debug_hdr( http_hdr );
 		}
@@ -857,9 +856,11 @@
 
 err_out:
 	if (fd > 0) closesocket( fd );
+	fd = -1;
 	res = -1;
 	http_free( http_hdr );
 out:
+	stream->fd = fd;
 	return res;
 }
 



More information about the MPlayer-cvslog mailing list