diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-19 14:12:20 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 14:12:20 -0800 |
commit | b4ced2b768ab6c580148d1163c82a655fe147edc (patch) | |
tree | 10478f839854a5c28873a52962ac77c21f4c6e1c /net | |
parent | 2d146eb172d5f754e3973a3f761f7619ebb12df9 (diff) | |
download | linux-3.10-b4ced2b768ab6c580148d1163c82a655fe147edc.tar.gz linux-3.10-b4ced2b768ab6c580148d1163c82a655fe147edc.tar.bz2 linux-3.10-b4ced2b768ab6c580148d1163c82a655fe147edc.zip |
netlink: With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run()
The s-port should be compared.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/inet_diag.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index bdb78dd180c..1aaa8110d84 100644 --- a/net/ipv4/inet_diag.c +++ b/net/ipv4/inet_diag.c @@ -368,7 +368,7 @@ static int inet_diag_bc_run(const void *bc, int len, yes = entry->sport >= op[1].no; break; case INET_DIAG_BC_S_LE: - yes = entry->dport <= op[1].no; + yes = entry->sport <= op[1].no; break; case INET_DIAG_BC_D_GE: yes = entry->dport >= op[1].no; |