diff options
author | Wim <wim@42.be> | 2022-03-12 23:02:04 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2022-03-20 14:57:48 +0100 |
commit | aefa70891cfd489fccb8a9567b5bdafb0f863ede (patch) | |
tree | 90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/modernc.org/libc/honnef.co | |
parent | 1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff) | |
download | matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.gz matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.tar.bz2 matterbridge-msglm-aefa70891cfd489fccb8a9567b5bdafb0f863ede.zip |
Update vendor (whatsapp)
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, 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{ |