[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH] Support for ftp PASV responses not ending with ')'
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2020-07-19 19:00:48
Message-ID: CAK1hOcP-Lvyv3vKFHAM4p11-z_dxUBbEpoFKmfdFiRjD56Z-7Q () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!

On Sun, Jul 12, 2020 at 9:34 PM Baruch Burstein <bmburstein@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@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic