ipv4: Fix crashes in ip_options_compile().
authorDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2012 23:13:17 +0000 (16:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2012 23:13:17 +0000 (16:13 -0700)
commit11604721a3c4bea60e2ddd9e4e30d741ecdba7b0
treecfc0f846bdfc9e146398133f6beec39b6e255b4c
parente87183c2b5ab1f55ebad2f260a7eb4d31549ce25
ipv4: Fix crashes in ip_options_compile().

The spec_dst uses should be guarded by skb_rtable() being non-NULL
not just the SKB being non-null.

Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_options.c