mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 11:04:17 +00:00
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