summaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-06-22 08:40:54 +0000
committerEric Andersen <andersen@codepoet.org>2004-06-22 08:40:54 +0000
commit78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0 (patch)
treeadd73a66dfaf7054b27b9456e6a8edf2b71c4072 /networking/inetd.c
parented9ecf78942e6da6f23f2e480639135c10631313 (diff)
downloadbusybox-w32-78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0.tar.gz
busybox-w32-78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0.tar.bz2
busybox-w32-78a5ddeff0352ee7a4f6a02333c07657f0b4ccc0.zip
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
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c2
1 files changed, 1 insertions, 1 deletions
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[])
771#endif /* uClinux */ 771#endif /* uClinux */
772 772
773 if(opt & 1) { 773 if(opt & 1) {
774 global_queuelen = atoi(optarg); 774 global_queuelen = atoi(sq);
775 if (global_queuelen < 8) global_queuelen=8; 775 if (global_queuelen < 8) global_queuelen=8;
776 } 776 }
777 argc -= optind; 777 argc -= optind;