mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
AK: Fix obvious bad vector access in IPv4Address::from_string()
Fixes #3137.
This commit is contained in:
parent
2336c62901
commit
6b8807be6e
|
@ -86,7 +86,7 @@ public:
|
|||
a = 0;
|
||||
b = 0;
|
||||
c = 0;
|
||||
d = parts[1].to_uint().value_or(256);
|
||||
d = parts[0].to_uint().value_or(256);
|
||||
} else if (parts.size() == 2) {
|
||||
a = parts[0].to_uint().value_or(256);
|
||||
b = 0;
|
||||
|
|
Loading…
Reference in a new issue