Pārlūkot izejas kodu

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>
Roel Kluin 15 gadi atpakaļ
vecāks
revīzija
b4ced2b768
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      net/ipv4/inet_diag.c

+ 1 - 1
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;