]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ftp.c
Merge commit '0983f9117f31521643162cb85380672495a9de1b'
[ffmpeg] / libavformat / ftp.c
index 0663b47bc49efb0ce3d00004d4617a37e6a82d51..9aa7a45629ff6e67e6d65672bc7a6394bf2034a9 100644 (file)
@@ -206,6 +206,9 @@ static int ftp_send_command(FTPContext *s, const char *command,
     if (response)
         *response = NULL;
 
+    if (!s->conn_control)
+        return AVERROR(EIO);
+
     if ((err = ffurl_write(s->conn_control, command, strlen(command))) < 0)
         return err;
     if (!err)