device: check nm_ip6_config_get_address_first_nontentative() argument
authorBeniamino Galvani <bgalvani@redhat.com>
Wed, 3 Feb 2016 08:05:25 +0000 (09:05 +0100)
committerBeniamino Galvani <bgalvani@redhat.com>
Wed, 3 Feb 2016 16:54:12 +0000 (17:54 +0100)
commitb5a469a894ea2d09c4934d8966dafcae656aa5a7
tree14a74b951a920881b01abde353d63dbafded7131
parent05b34e11d6000723a640f39aa16640581ab14201
device: check nm_ip6_config_get_address_first_nontentative() argument

Since commit 9ff161b2a1b0 ("device: move have_ip6_address() to
nm_ip6_config_get_address_first_nontentative()") the IP configuration
argument of nm_ip6_config_get_address_first_nontentative() must be
non-NULL. Add checks where needed.

Fixes: 9ff161b2a1b0d4a63f91d326050ae1b8906b7b1b
src/devices/nm-device.c