From: Roel Kluin Date: Tue, 19 Jan 2010 22:12:20 +0000 (-0800) Subject: netlink: With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run() X-Git-Tag: firefly_0821_release~9833^2~3158^2~76 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b4ced2b768ab6c580148d1163c82a655fe147edc;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/inet_diag.c b/net/ipv4/inet_diag.c index bdb78dd180ce..1aaa8110d84b 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;