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>
This commit is contained in:
parent
2d146eb172
commit
b4ced2b768
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue