http://git.etherboot.org
/
people
/
dverkamp
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Should call ftp_done() if constructor fails.
[people/dverkamp/gpxe.git]
/
src
/
net
/
tcp
/
ftp.c
diff --git
a/src/net/tcp/ftp.c
b/src/net/tcp/ftp.c
index
47b6ae3
..
f90e793
100644
(file)
--- a/
src/net/tcp/ftp.c
+++ b/
src/net/tcp/ftp.c
@@
-454,6
+454,7
@@
static int ftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
err:
DBGC ( ftp, "FTP %p could not create request: %s\n",
ftp, strerror ( rc ) );
+ ftp_done ( ftp, rc );
ref_put ( &ftp->refcnt );
return rc;
}