net/x25: fix null_x25_address handling
authorMartin Schiller <ms@dev.tdt.de>
Tue, 27 Nov 2018 08:50:28 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:41:14 +0000 (10:41 +0100)
commit3f55d0ea96414e5a86ccec8aa4f9628c9e9ee6e7
tree3ef2edef15d072267993839c92c558d052974c86
parentad4c756c9d999ac63567cec9f6bd7283d2dca159
net/x25: fix null_x25_address handling

[ Upstream commit 06137619f061f498c2924f6543fa45b7d39f0501 ]

o x25_find_listener(): the compare for the null_x25_address was wrong.
   We have to check the x25_addr of the listener socket instead of the
   x25_addr of the incomming call.

 o x25_bind(): it was not possible to bind a socket to null_x25_address

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/x25/af_x25.c