mirror of
https://github.com/ipxe/ipxe
synced 2025-12-10 21:41:09 +03:00
Should call ftp_done() if constructor fails.
This commit is contained in:
@@ -454,6 +454,7 @@ static int ftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
|
|||||||
err:
|
err:
|
||||||
DBGC ( ftp, "FTP %p could not create request: %s\n",
|
DBGC ( ftp, "FTP %p could not create request: %s\n",
|
||||||
ftp, strerror ( rc ) );
|
ftp, strerror ( rc ) );
|
||||||
|
ftp_done ( ftp, rc );
|
||||||
ref_put ( &ftp->refcnt );
|
ref_put ( &ftp->refcnt );
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user