summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2018-11-04 21:49:09 +0100
committerEvgeny Vereshchagin <evvers@ya.ru>2018-11-06 19:01:32 +0100
commit0621f03b133ef90b8df28046cae7dcbdc2a97eba (patch)
tree42c11cab7df74026917cabe475d31cc19fcdbc29
parent3e180a2516be95f07462348121639bd4d132d305 (diff)
downloadsystemd-0621f03b133ef90b8df28046cae7dcbdc2a97eba.tar.gz
systemd-0621f03b133ef90b8df28046cae7dcbdc2a97eba.tar.bz2
systemd-0621f03b133ef90b8df28046cae7dcbdc2a97eba.zip
networkd: remove a weird assertion from network_load_one
The assertion was added in dbffab87f1504abc9f but I'm not exactly sure why. Now it just crashes a fuzzer I wrote. I, of course, could fix the fuzzer so that it would generate names ending in ".network" if anyone would tell me why the assertion should be kept here.
-rw-r--r--src/network/networkd-network.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 1890021f51..d6d59bab43 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -181,8 +181,6 @@ static int network_load_one(Manager *manager, const char *filename) {
if (!d)
return -EINVAL;
- assert(streq(d, ".network"));
-
*d = '\0';
network->required_for_online = true;