2022-12-16 05:34:52

by Zhi Li

[permalink] [raw]
Subject: [PATCH] [nfs/nfs-utils/libtirpc] getnetconfigent: avoid potential DoS issue by removing unnecessary sleep

Signed-off-by: Zhi Li <[email protected]>
---
src/getnetconfig.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/src/getnetconfig.c b/src/getnetconfig.c
index cfd33c2..9acd8c7 100644
--- a/src/getnetconfig.c
+++ b/src/getnetconfig.c
@@ -439,7 +439,6 @@ getnetconfigent(netid)
fprintf(stderr, "See UPDATING entry 20021216 for details.\n");
fprintf(stderr, "Continuing in 10 seconds\n\n");
fprintf(stderr, "This warning will be removed 20030301\n");
- sleep(10);

}

--
2.38.1


2023-01-11 16:26:31

by Steve Dickson

[permalink] [raw]
Subject: Re: [PATCH] [nfs/nfs-utils/libtirpc] getnetconfigent: avoid potential DoS issue by removing unnecessary sleep



On 12/16/22 12:11 AM, Zhi Li wrote:
> Subject:
> [PATCH] [nfs/nfs-utils/libtirpc] getnetconfigent: avoid potential DoS
> issue by removing unnecessary sleep
> From:
> Zhi Li <[email protected]>
> Date:
> 12/16/22, 12:11 AM
>
> To:
> [email protected]
> CC:
> [email protected], Zhi Li <[email protected]>
>
>
> Signed-off-by: Zhi Li<[email protected]>
Committed...

steved.
> ---
> src/getnetconfig.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/src/getnetconfig.c b/src/getnetconfig.c
> index cfd33c2..9acd8c7 100644
> --- a/src/getnetconfig.c
> +++ b/src/getnetconfig.c
> @@ -439,7 +439,6 @@ getnetconfigent(netid)
> fprintf(stderr, "See UPDATING entry 20021216 for details.\n");
> fprintf(stderr, "Continuing in 10 seconds\n\n");
> fprintf(stderr, "This warning will be removed 20030301\n");
> - sleep(10);
>
> }
>
> -- 2.38.1
>