Explorar el Código

Should call ftp_done() if constructor fails.

tags/v0.9.3
Michael Brown hace 18 años
padre
commit
4ccd1e8198
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/net/tcp/ftp.c

+ 1
- 0
src/net/tcp/ftp.c Ver fichero

@@ -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…
Cancelar
Guardar