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-05-18 02:24:13 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-05-19 01:08:16 -04:00
2012-06-04 11:45:11 -04:00
2012-05-18 02:24:13 -04:00
2012-05-15 13:13:34 -04:00
2012-05-19 01:08:16 -04:00
2012-01-17 23:56:18 -05:00
2012-05-19 01:08:16 -04:00
2011-11-22 16:43:32 -05:00
2011-11-22 16:43:32 -05:00