/*
NNCP -- Node to Node copy, utilities for store-and-forward data exchange
-Copyright (C) 2016-2021 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2016-2023 Sergey Matveev <stargrave@stargrave.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
PktTypeTrns PktType = iota
PktTypeExecFat PktType = iota
PktTypeArea PktType = iota
+ PktTypeACK PktType = iota
MaxPathSize = 1<<8 - 1
if err != nil {
panic(err)
}
- if bytes.Compare(ct[:n], pt[:n]) != 0 {
+ if !bytes.Equal(ct[:n], pt[:n]) {
err = errors.New("wrong pad value")
return
}