Hannes Frederic Sowa dc8482926e ipv6: check return value of ipv6_get_lladdr
We should check the return value of ipv6_get_lladdr in inet6_set_iftoken.

A possible situation, which could leave ll_addr unassigned is, when
the user removed her link-local address but a global scoped address was
already set. In this case the interface would still be IF_READY and not
dead. In that case the RS source address is some value from the stack.

v2: Daniel Borkmann noted a small indent inconstancy; no semantic
changes.

Cc: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Reviewed-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-06-25 16:27:28 -07:00
..
2013-03-26 12:27:18 -04:00
2013-02-15 15:10:37 -05:00
2012-11-03 14:59:05 -04:00
2013-03-26 12:27:18 -04:00
2013-03-26 12:27:19 -04:00
2012-09-25 16:04:44 -04:00
2013-05-31 16:26:49 -07:00
2013-03-26 12:27:19 -04:00
2013-03-17 14:35:13 -04:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2013-05-11 16:26:38 -07:00
2012-11-01 12:41:35 -04:00