Browse Source

Should call ftp_done() if constructor fails.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
4ccd1e8198
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/net/tcp/ftp.c

+ 1
- 0
src/net/tcp/ftp.c View File

@@ -454,6 +454,7 @@ static int ftp_open ( struct xfer_interface *xfer, struct uri *uri ) {
454 454
  err:
455 455
 	DBGC ( ftp, "FTP %p could not create request: %s\n", 
456 456
 	       ftp, strerror ( rc ) );
457
+	ftp_done ( ftp, rc );
457 458
 	ref_put ( &ftp->refcnt );
458 459
 	return rc;
459 460
 }

Loading…
Cancel
Save