]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/ipv4: Check for mistakenly passed in non-IPv4 address
authorMarcus Meissner <meissner@suse.de>
Thu, 2 Jun 2011 04:05:22 +0000 (21:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Jul 2011 03:31:27 +0000 (05:31 +0200)
commitbcdafe04648854ae6bb9bb2caea7f3c50d2df855
tree3fce4f342855d5109706884e969ca85b6a0b1c9d
parent26d3cbdece9463926d553dbeed3df10af22bb161
net/ipv4: Check for mistakenly passed in non-IPv4 address

[ Upstream commit d0733d2e29b652b2e7b1438ececa732e4eed98eb ]

Check against mistakenly passing in IPv6 addresses (which would result
in an INADDR_ANY bind) or similar incompatible sockaddrs.

Signed-off-by: Marcus Meissner <meissner@suse.de>
Cc: Reinhard Max <max@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/af_inet.c