[BusyBox-cvs] inetd.c
Erik Andersen,,,
andersen at busybox.net
Tue Jun 22 08:40:57 UTC 2004
Update of /var/cvs/busybox/networking
In directory nail:/tmp/cvs-serv32345/networking
Modified Files:
inetd.c
Log Message:
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
Index: inetd.c
===================================================================
RCS file: /var/cvs/busybox/networking/inetd.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- inetd.c 14 Apr 2004 17:51:24 -0000 1.21
+++ inetd.c 22 Jun 2004 08:40:54 -0000 1.22
@@ -771,7 +771,7 @@
#endif /* uClinux */
if(opt & 1) {
- global_queuelen = atoi(optarg);
+ global_queuelen = atoi(sq);
if (global_queuelen < 8) global_queuelen=8;
}
argc -= optind;
More information about the busybox-cvs
mailing list