From aefa70891cfd489fccb8a9567b5bdafb0f863ede Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 12 Mar 2022 23:02:04 +0100 Subject: Update vendor (whatsapp) --- vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vendor/modernc.org/libc/honnef.co') 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 ... + // As we're using strings.Fields for splitting the line, failures can happen if the protocol field contains white spaces. + continue } protoent := &Protoent{ -- cgit v1.2.3