[MPlayer-cvslog] r35431 - trunk/stream/stream_ftp.c
al
subversion at mplayerhq.hu
Tue Nov 20 23:20:52 CET 2012
Author: al
Date: Tue Nov 20 23:20:52 2012
New Revision: 35431
Log:
stream ftp: Only send QUIT command if connected
Do not attempt to send commands without control connections.
Modified:
trunk/stream/stream_ftp.c
Modified: trunk/stream/stream_ftp.c
==============================================================================
--- trunk/stream/stream_ftp.c Tue Nov 20 23:19:45 2012 (r35430)
+++ trunk/stream/stream_ftp.c Tue Nov 20 23:20:52 2012 (r35431)
@@ -400,9 +400,11 @@ static void close_f(stream_t *s) {
s->fd = -1;
}
- FtpSendCmd("QUIT",p,NULL);
+ if (p->handle >= 0) {
+ FtpSendCmd("QUIT", p, NULL);
+ closesocket(p->handle);
+ }
- if(p->handle >= 0) closesocket(p->handle);
free(p->buf);
m_struct_free(&stream_opts,p);
More information about the MPlayer-cvslog
mailing list