applied, thanks

On Thu, Jun 6, 2019 at 2:06 PM Luís Marques <[email protected]> wrote:
>
> This one fixes a crash if you run busybox lpd < /dev/null
>
> diff --git a/printutils/lpd.c b/printutils/lpd.c
> index ce5944026..408695f39 100644
> --- a/printutils/lpd.c
> +++ b/printutils/lpd.c
> @@ -133,6 +133,8 @@ int lpd_main(int argc UNUSED_PARAM, char *argv[])
>
>      // read command
>      s = queue = xmalloc_read_stdin();
> +    if (!s)
> +        return EXIT_SUCCESS;
>      // we understand only "receive job" command
>      if (2 != *queue) {
>   unsupported_cmd:
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to