Commit a27c2f72 authored by Michael Tremer's avatar Michael Tremer

address: Fix decrementing IP addresses

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 8bcd0712
......@@ -256,6 +256,8 @@ static inline void loc_address_decrement(struct in6_addr* address) {
if (address->s6_addr[octet] > 0) {
address->s6_addr[octet]--;
break;
} else {
address->s6_addr[octet] = 255;
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment