]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
libsystemd-network: unitialized return value
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Feb 2018 08:20:36 +0000 (09:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 15 Feb 2018 08:20:36 +0000 (09:20 +0100)
r will *usually* be set, but for some packets it might not.

CID #1385308.

src/libsystemd-network/sd-dhcp6-client.c

index ec3484383bd68772ce728119997ce6b99870479a..2d38e51424fc217fe057507d6da9c21ba60caba1 100644 (file)
@@ -973,7 +973,7 @@ static int client_parse_message(
                 lease->pd.ia_pd.lifetime_t2 = htobe32(lt_t2);
         }
 
-        return r;
+        return 0;
 }
 
 static int client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply, size_t len) {