summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/honnef.co/go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/honnef.co/go')
-rw-r--r--vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go5
1 files changed, 4 insertions, 1 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 38467268..bca62b15 100644
--- a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
+++ b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
@@ -713,7 +713,10 @@ func init() {
num, err := strconv.ParseInt(fields[1], 10, 32)
if err != nil {
- panic(err)
+ // If we find lines that don't match the expected format we skip over them.
+ // The expected format is <protocol> <number> <aliases> ...
+ // As we're using strings.Fields for splitting the line, failures can happen if the protocol field contains white spaces.
+ continue
}
protoent := &Protoent{