mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 21:57:44 +03:00
Update go-dnsstamps
This commit is contained in:
parent
f06967a020
commit
e6b9f3c2c0
4 changed files with 6 additions and 6 deletions
4
vendor/github.com/jedisct1/go-dnsstamps/dnsstamps.go
generated
vendored
4
vendor/github.com/jedisct1/go-dnsstamps/dnsstamps.go
generated
vendored
|
@ -249,9 +249,9 @@ func newDNSCryptRelayStamp(bin []byte) (ServerStamp, error) {
|
|||
return stamp, errors.New("Stamp is too short")
|
||||
}
|
||||
binLen := len(bin)
|
||||
pos := 0
|
||||
pos := 1
|
||||
length := int(bin[pos])
|
||||
if 1+length >= binLen-pos {
|
||||
if 1+length > binLen-pos {
|
||||
return stamp, errors.New("Invalid stamp")
|
||||
}
|
||||
pos++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue