[PATCH] Support for ftp PASV responses not ending with ')'

Denys Vlasenko vda.linux at googlemail.com
Sun Jul 19 19:00:48 UTC 2020


Applied, thanks!

On Sun, Jul 12, 2020 at 9:34 PM Baruch Burstein <bmburstein at gmail.com> wrote:
>
> ---
>  networking/parse_pasv_epsv.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/networking/parse_pasv_epsv.c b/networking/parse_pasv_epsv.c
> index 14f4d4258..de4032612 100644
> --- a/networking/parse_pasv_epsv.c
> +++ b/networking/parse_pasv_epsv.c
> @@ -38,6 +38,8 @@ int FAST_FUNC parse_pasv_epsv(char *buf)
>                  * Server's IP is N1.N2.N3.N4 (we ignore it)
>                  * Server's port for data connection is P1*256+P2 */
>                 ptr = strrchr(buf, ')');
> +               if (!ptr) ptr = strrchr(buf, '\r');
> +               if (!ptr) ptr = strrchr(buf, '\n');
>                 if (ptr) *ptr = '\0';
>
>                 ptr = strrchr(buf, ',');
> --
> 2.27.0
>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list