Update vendoring (#1105)
* Update vendor github.com/sirupsen/logrus@v1.1.1 * Update vendor github.com/coreos/go-systemd/dbus@v17 * Update vendor github.com/golang/protobuf/proto@v1.2.0 * Update vendor github.com/konsorten/go-windows-terminal-sequences@v1.0.1 * Update vendor github.com/mdlayher/... * Update vendor github.com/prometheus/procfs/... * Update vendor golang.org/x/... Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
f0d2a06b11
commit
9cf508e673
279 changed files with 54502 additions and 15108 deletions
21
vendor/github.com/mdlayher/netlink/message.go
generated
vendored
21
vendor/github.com/mdlayher/netlink/message.go
generated
vendored
|
|
@ -233,17 +233,16 @@ func (m *Message) UnmarshalBinary(b []byte) error {
|
|||
func checkMessage(m Message) error {
|
||||
const success = 0
|
||||
|
||||
// Both "done" and "error" can contain error codes.
|
||||
isDone := m.Header.Type == HeaderTypeDone
|
||||
isError := m.Header.Type == HeaderTypeError
|
||||
|
||||
switch {
|
||||
// "done" with no data means success.
|
||||
case isDone && len(m.Data) == 0:
|
||||
return nil
|
||||
case isError, isDone:
|
||||
break
|
||||
default:
|
||||
// Per libnl documentation, only messages that indicate type error can
|
||||
// contain error codes:
|
||||
// https://www.infradead.org/~tgr/libnl/doc/core.html#core_errmsg.
|
||||
//
|
||||
// However, at one point, this package checked both done and error for
|
||||
// error codes. Because there was no issue associated with the change,
|
||||
// it is unknown whether this change was correct or not. If you run into
|
||||
// a problem with your application because of this change, please file
|
||||
// an issue.
|
||||
if m.Header.Type != HeaderTypeError {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue