ipv4: make ip_append_data() handle NULL routing table
authorJulien TINNES <julien@cr0.org>
Thu, 27 Aug 2009 13:26:58 +0000 (15:26 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Aug 2009 19:23:43 +0000 (12:23 -0700)
commit788d908f2879a17e5f80924f3da2e23f1034482d
tree890ada4f22e9ce5d64a121efc1ca63390d6b2100
parent9886e836a6a5dbd273dc55b17e713f0a188d137f
ipv4: make ip_append_data() handle NULL routing table

Add a check in ip_append_data() for NULL *rtp to prevent future bugs in
callers from being exploitable.

Signed-off-by: Julien Tinnes <julien@cr0.org>
Signed-off-by: Tavis Ormandy <taviso@sdf.lonestar.org>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
net/ipv4/ip_output.c