Skip to content

Commit

Permalink
netlink: With opcode INET_DIAG_BC_S_LE dport was compared in inet_dia…
Browse files Browse the repository at this point in the history
…g_bc_run()

The s-port should be compared.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
RoelKluin authored and davem330 committed Jan 19, 2010
1 parent 2d146eb commit b4ced2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/inet_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4ced2b

Please sign in to comment.