summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/honnef.co/go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-12 23:02:04 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commitaefa70891cfd489fccb8a9567b5bdafb0f863ede (patch)
tree90fe7c91d7b33b2a1ed08ea3a94840860adc6fc1 /vendor/modernc.org/libc/honnef.co/go
parent1b9877fda45be021ea6a5677c78648cecc19dcd5 (diff)
downloadmatterbridge-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/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{