David S. Miller 7b34ca2ac7 inet: Avoid potential NULL peer dereference.
We handle NULL in rt{,6}_set_peer but then our caller will try to pass
that NULL pointer into inet_putpeer() which isn't ready for it.

Fix this by moving the NULL check one level up, and then remove the
now unnecessary NULL check from inetpeer_ptr_set_peer().

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-06-11 04:13:57 -07:00
..
2012-06-04 11:45:11 -04:00
2012-04-25 19:47:17 -04:00
2012-05-17 04:50:21 -04:00
2012-06-04 11:45:11 -04:00
2012-06-04 11:45:11 -04:00
2012-04-15 12:44:40 -04:00
2012-06-04 11:45:11 -04:00
2012-05-17 18:45:20 -04:00
2012-05-17 04:50:21 -04:00
2012-06-04 11:45:11 -04:00
2012-06-04 11:45:11 -04:00
2012-06-11 02:08:59 -07:00
2012-06-04 11:45:11 -04:00
2012-06-09 19:06:21 -07:00
2012-05-27 01:11:22 -04:00
2010-10-15 15:53:27 +02:00