mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Merge pull request #2547 from laytan/parse-address-can-return-nil
fix parse_address can return nil
This commit is contained in:
@@ -392,6 +392,10 @@ load_resolv_conf :: proc(resolv_conf_path: string, allocator := context.allocato
|
||||
}
|
||||
|
||||
addr := parse_address(server_ip_str)
|
||||
if addr == nil {
|
||||
continue
|
||||
}
|
||||
|
||||
endpoint := Endpoint{
|
||||
addr,
|
||||
53,
|
||||
|
||||
Reference in New Issue
Block a user