summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2004-06-22 08:40:54 +0000
committerEric Andersen2004-06-22 08:40:54 +0000
commit78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0 (patch)
treeadd73a66dfaf7054b27b9456e6a8edf2b71c4072
parented9ecf78942e6da6f23f2e480639135c10631313 (diff)
downloadbusybox-78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0.zip
busybox-78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0.tar.gz
Robin Farine writes:
Package: BusyBox Version: 1.0.0-pre10 Passing the -q <integer> option to inetd causes it to dereference an invalid pointer (optarg). The attached patch provides a fix to this problem. Robin
-rw-r--r--networking/inetd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 4440a2d..169cc87 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;