projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44fd82
)
[IPVS]: Make sure ip_vs_ftp ports are valid: module_param_array approach
author
Simon Horman
<
[email protected]
>
Thu, 28 Sep 2006 05:53:24 +0000
(22:53 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 29 Sep 2006 01:02:56 +0000
(18:02 -0700)
I'm not entirely sure what happens in the case of a valid port,
at best it'll be silently ignored. This patch ensures that
the port values are unsigned short values, and thus always valid.
This is a second take at fixing this problem, it is simpler
and arguably more correct than the previous approach
that was committed as
3f5af5b353ca36aca4f8a46e3da2172f669dbbbc
.
Prior to this patch a patch that reverses
3f5af5b353ca36aca4f8a46e3da2172f669dbbbc
was sent.
Signed-off-by: Simon Horman <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/ipvs/ip_vs_ftp.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ipvs/ip_vs_ftp.c
b/net/ipv4/ipvs/ip_vs_ftp.c
index 4df215c51c715cdc1413b888327f115f22c48b75..62505d8f9ff6cf4823e306eadd366a765e8a309c 100644
(file)
--- a/
net/ipv4/ipvs/ip_vs_ftp.c
+++ b/
net/ipv4/ipvs/ip_vs_ftp.c
@@
-44,8
+44,8
@@
* List of ports (up to IP_VS_APP_MAX_PORTS) to be handled by helper
* First port is set to the default port.
*/
-static
in
t ports[IP_VS_APP_MAX_PORTS] = {21, 0};
-module_param_array(ports,
in
t, NULL, 0);
+static
unsigned shor
t ports[IP_VS_APP_MAX_PORTS] = {21, 0};
+module_param_array(ports,
ushor
t, NULL, 0);
MODULE_PARM_DESC(ports, "Ports to monitor for FTP control commands");