From: Eric Andersen Date: Tue, 22 Jun 2004 08:40:54 +0000 (-0000) Subject: Robin Farine writes: X-Git-Tag: 1_00_rc1~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0;p=oweals%2Fbusybox.git 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 --- 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;