libnl/lib/xfrm
Tobias Klauser 4e115113c9 xfrm: fix potential NULL dereference
If xfrmnl_sel_alloc() returns NULL, the daddr and saddr members are
still accessed, leading to a potential NULL dereference. The same is the
case for xfrmnl_user_tmpl_alloc(). Fix this by returning NULL right away
if allocation fails.

http://lists.infradead.org/pipermail/libnl/2015-May/001874.html

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Thomas Haller <thaller@redhat.com>
2015-05-12 13:14:26 +02:00
..
ae.c xfrm: fix an unintialized return value on memory allocation error in xfrmnl_ae_parse() 2014-08-27 12:59:39 +02:00
lifetime.c xfrm: style-fixes 2014-07-20 18:15:16 +02:00
sa.c xfrm: fix xfrm_sa_msg_parser() to return the value from the callback 2014-08-27 13:00:46 +02:00
selector.c xfrm: fix potential NULL dereference 2015-05-12 13:14:26 +02:00
sp.c xfrm: fix calling free() with a bad pointer 2014-08-26 16:52:17 +02:00
template.c xfrm: fix potential NULL dereference 2015-05-12 13:14:26 +02:00