From 78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 22 Jun 2004 08:40:54 +0000 Subject: Robin Farine writes: Package: BusyBox Version: 1.0.0-pre10 Passing the -q option to inetd causes it to dereference an invalid pointer (optarg). The attached patch provides a fix to this problem. Robin --- networking/inetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/inetd.c b/networking/inetd.c index 4440a2d30..169cc8716 100644 --- a/networking/inetd.c +++ b/networking/inetd.c @@ -771,7 +771,7 @@ extern int inetd_main(int argc, char *argv[]) #endif /* uClinux */ if(opt & 1) { - global_queuelen = atoi(optarg); + global_queuelen = atoi(sq); if (global_queuelen < 8) global_queuelen=8; } argc -= optind; -- cgit v1.2.3