]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
DHCP6: Fix a bogus compile warning
authorRoy Marples <roy@marples.name>
Wed, 15 Jan 2020 16:18:35 +0000 (19:18 +0300)
committerRoy Marples <roy@marples.name>
Wed, 15 Jan 2020 16:18:35 +0000 (19:18 +0300)
src/dhcp6.c

index 901bda610f68b0f8998e5e7e965c699e97780115..a3732a6d5caed8f93067fa2daa22ef920e1e017f 100644 (file)
@@ -1220,7 +1220,7 @@ dhcp6_sendmessage(struct interface *ifp, void (*callback)(void *))
                broad_uni = "unicasting";
        }
 
-       if (!callback)
+       if (!callback) {
                logdebugx("%s: %s %s with xid 0x%02x%02x%02x",
                    ifp->name,
                    broad_uni,
@@ -1228,7 +1228,8 @@ dhcp6_sendmessage(struct interface *ifp, void (*callback)(void *))
                    state->send->xid[0],
                    state->send->xid[1],
                    state->send->xid[2]);
-       else {
+               RT = 0;
+       } else {
                if (state->IMD &&
                    !(ifp->options->options & DHCPCD_INITIAL_DELAY))
                        state->IMD = 0;