We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e552651 commit ea121d8Copy full SHA for ea121d8
src/network/networkd-address.c
@@ -355,18 +355,18 @@ int address_update(
355
int r;
356
357
assert(address);
358
+ assert(address->link);
359
assert(cinfo);
- assert_return(address->link, 1);
360
-
361
- if (IN_SET(address->link->state, LINK_STATE_FAILED, LINK_STATE_LINGER))
362
- return 1;
363
364
ready = address_is_ready(address);
365
366
address->flags = flags;
367
address->scope = scope;
368
address->cinfo = *cinfo;
369
+ if (IN_SET(address->link->state, LINK_STATE_FAILED, LINK_STATE_LINGER))
+ return 0;
+
370
link_update_operstate(address->link, true);
371
link_check_ready(address->link);
372
0 commit comments