net/ipv4: Check for mistakenly passed in non-IPv4 address
commit4e754b40ebbd638984e33eb8509acb63b9c7f253
authorMarcus Meissner <meissner@suse.de>
Thu, 2 Jun 2011 04:05:22 +0000 (1 21:05 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Jul 2011 03:29:27 +0000 (13 05:29 +0200)
tree06271e3e827fdc72c8d0c9953a999ed555b97881
parentcc2c6564492b2a5f570d08d127c1496cc185a5f5
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