fix(ftp): nil pointer dereference (close #1722)

pull/1831/head
Noah Hsu 2022-09-20 22:23:22 +08:00
parent 9181861f47
commit 656f5f112c
1 changed files with 1 additions and 0 deletions

View File

@ -19,5 +19,6 @@ func (d *FTP) login() error {
if err != nil {
return err
}
d.conn = conn
return nil
}