summaryrefslogtreecommitdiff
path: root/sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@rogentos.ro>2016-03-19 20:31:18 +0000
committerV3n3RiX <venerix@rogentos.ro>2016-03-19 20:31:18 +0000
commit2279f39deeb120e7bb8f8c290c4c76c4d92334c2 (patch)
treef525bd870ff8af5c835bb2beef0e898fe77bdf4d /sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch
parent9aecd101b7b20b2dadb4a5e488f0ad841f56f531 (diff)
import systemd into kogaion-desktop, will make it boot WAY faster in live mode
Diffstat (limited to 'sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch')
-rw-r--r--sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch b/sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch
new file mode 100644
index 00000000..0e73ddec
--- /dev/null
+++ b/sys-apps/systemd/files/224-0001-networkd-fix-neworkd-crash.patch
@@ -0,0 +1,28 @@
+From 49f6e11e89b46bacf7b26f6da3921abc1c2faa80 Mon Sep 17 00:00:00 2001
+From: Susant Sahani <ssahani@gmail.com>
+Date: Sun, 2 Aug 2015 00:16:02 +0530
+Subject: [PATCH] networkd: fix neworkd crash
+
+fix issue #827
+
+hostname should be init to NULL.
+---
+ src/network/networkd-dhcp4.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c
+index 4aa301b..5454bdd 100644
+--- a/src/network/networkd-dhcp4.c
++++ b/src/network/networkd-dhcp4.c
+@@ -468,7 +468,7 @@ static int dhcp_lease_acquired(sd_dhcp_client *client, Link *link) {
+ }
+
+ if (link->network->dhcp_hostname) {
+- const char *hostname;
++ const char *hostname = NULL;
+
+ if (!link->network->hostname)
+ r = sd_dhcp_lease_get_hostname(lease, &hostname);
+--
+2.5.0
+