Skip to content

networkd: fix overflow check - #9613

Merged
keszybz merged 1 commit into
systemd:masterfrom
poettering:networkd-overflow-check
Jul 25, 2018
Merged

keszybz merged 1 commit into
systemd:masterfrom
poettering:networkd-overflow-check

Conversation

@poettering

Copy link
Copy Markdown
Member

Fixes: #9591

@poettering

Copy link
Copy Markdown
Member Author

cc @pfl

@gdamjan

gdamjan commented Jul 17, 2018

Copy link
Copy Markdown
Contributor

What's the use of uint64_t n = n_used on line 184 actually? it's not modified anywhere I can see.

@poettering

Copy link
Copy Markdown
Member Author

@gdamjan ah, right, that code makes no sense. @pfl ?

@pfl

pfl commented Jul 18, 2018

Copy link
Copy Markdown
Contributor

@gdamjan ah, right, that code makes no sense. @pfl ?

Yeah, if it is not used, feel free to drop it. Otherwise the patch looks fine, I'll take a look at what happens with the left-over subnets, the code looks a bit lame there too.

@keszybz
keszybz merged commit 9fb96ab into systemd:master Jul 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants