Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4ced2b7 authored by Roel Kluin's avatar Roel Kluin Committed by David S. Miller
Browse files

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: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2d146eb1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;