summaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index bf95aa2c90..8f2c1b3975 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -371,7 +371,11 @@ static int link_status_one(sd_rtnl *rtnl, struct udev *udev, const char *name) {
char *wildcard;
wildcard = strdup("*");
- strv_push(&domains, wildcard);
+ if (!wildcard)
+ return log_oom();
+
+ if (strv_consume(&domains, wildcard) < 0)
+ return log_oom();
}
sprintf(devid, "n%i", ifindex);