Commit d7346853 authored by Patrick McHardy's avatar Patrick McHardy Committed by David S. Miller

[NETFILTER]: nf_conntrack_ftp: fix missing helper mask initilization

Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent be00c8e4
...@@ -586,6 +586,7 @@ static int __init nf_conntrack_ftp_init(void) ...@@ -586,6 +586,7 @@ static int __init nf_conntrack_ftp_init(void)
for (j = 0; j < 2; j++) { for (j = 0; j < 2; j++) {
ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]); ftp[i][j].tuple.src.u.tcp.port = htons(ports[i]);
ftp[i][j].tuple.dst.protonum = IPPROTO_TCP; ftp[i][j].tuple.dst.protonum = IPPROTO_TCP;
ftp[i][j].mask.src.l3num = 0xFFFF;
ftp[i][j].mask.src.u.tcp.port = 0xFFFF; ftp[i][j].mask.src.u.tcp.port = 0xFFFF;
ftp[i][j].mask.dst.protonum = 0xFF; ftp[i][j].mask.dst.protonum = 0xFF;
ftp[i][j].max_expected = 1; ftp[i][j].max_expected = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment