lavf/ftp: fix possible crash