[systemd-commits] src/network

Kay Sievers kay at kemper.freedesktop.org
Wed Jan 1 20:19:47 PST 2014


 src/network/networkd-link.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit be9326ca1d207e1df6a033c593393ebbbc433148
Author: Kay Sievers <kay at vrfy.org>
Date:   Thu Jan 2 05:16:14 2014 +0100

    networkd: fix NULL pointer deref

diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index e421dd4..c0ca5f2 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -633,7 +633,7 @@ int link_update(Link *link, sd_rtnl_message *m) {
         } else if (!(link->flags & IFF_LOWER_UP) && flags & IFF_LOWER_UP) {
                 log_info("Interface '%s' is connected", link->ifname);
 
-                if (link->network->dhcp) {
+                if (link->network && link->network->dhcp) {
                         r = link_acquire_conf(link);
                         if (r < 0) {
                                 link_enter_failed(link);



More information about the systemd-commits mailing list