projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed9ecf7
)
Robin Farine writes:
author
Eric Andersen
<andersen@codepoet.org>
Tue, 22 Jun 2004 08:40:54 +0000
(08:40 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Tue, 22 Jun 2004 08:40:54 +0000
(08:40 -0000)
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
networking/inetd.c
patch
|
blob
|
history
diff --git
a/networking/inetd.c
b/networking/inetd.c
index 4440a2d303c352416b6c3a41be6841a0a561e584..169cc87166d6334cbb60684397306f26490b085a 100644
(file)
--- 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;