networkd: link - fix carrier check on new link

We were comparing against our own internal enum rather than the kernel exposed one.

Found by Thomas Ritter.
This commit is contained in:
Tom Gundersen 2014-06-17 08:54:44 +02:00
parent 0bbc2c1f3b
commit bf0308cbd5

View file

@ -1764,7 +1764,7 @@ static int link_configure(Link *link) {
*/
}
if (link_has_carrier(link->flags, link->operstate)) {
if (link_has_carrier(link->flags, link->kernel_operstate)) {
r = link_acquire_conf(link);
if (r < 0)
return r;