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
  err:
454
  err:
455
 	DBGC ( ftp, "FTP %p could not create request: %s\n", 
455
 	DBGC ( ftp, "FTP %p could not create request: %s\n", 
456
 	       ftp, strerror ( rc ) );
456
 	       ftp, strerror ( rc ) );
457
+	ftp_done ( ftp, rc );
457
 	ref_put ( &ftp->refcnt );
458
 	ref_put ( &ftp->refcnt );
458
 	return rc;
459
 	return rc;
459
 }
460
 }

Loading…
Cancel
Save