diff options
Diffstat (limited to 'vendor/modernc.org/libc/honnef.co')
-rw-r--r-- | vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go index 61f80522..dae75172 100644 --- a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go +++ b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go @@ -747,6 +747,11 @@ func init() { continue } + // https://gitlab.com/cznic/libc/-/issues/25 + if strings.Index(fields[1], "/") < 0 { + continue + } + name := fields[0] portproto := strings.SplitN(fields[1], "/", 2) port, err := strconv.ParseInt(portproto[0], 10, 32) |