summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-03-19 22:04:13 +0100
committerWim <wim@42.be>2022-03-20 14:57:48 +0100
commit2623a412c42a81104b97ae8c81a5f66760fee4b6 (patch)
tree502c6d4473baac3792d14fda51dbb56179f19424 /vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
parentd64eed49bc6f2e8a01f922727795eea158cbc56d (diff)
downloadmatterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.tar.gz
matterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.tar.bz2
matterbridge-msglm-2623a412c42a81104b97ae8c81a5f66760fee4b6.zip
Update vendor (whatsapp)
Diffstat (limited to 'vendor/modernc.org/libc/honnef.co/go/netdb/netdb.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 bca62b15..61f80522 100644
--- a/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
+++ b/vendor/modernc.org/libc/honnef.co/go/netdb/netdb.go
@@ -751,7 +751,10 @@ func init() {
portproto := strings.SplitN(fields[1], "/", 2)
port, err := strconv.ParseInt(portproto[0], 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 <service-name> <port>/<protocol> [aliases ...]
+ // As we're using strings.Fields for splitting the line, failures can happen if the service name field contains white spaces.
+ continue
}
proto := portproto[1]