This commit is contained in:
Frank Denis 2021-06-12 14:48:02 +02:00
parent 6117a1111c
commit 4caa7b6d64
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func parseODoHTargetConfig(config []byte) (ODoHTargetConfig, error) {
func parseODoHTargetConfigs(configs []byte) ([]ODoHTargetConfig, error) {
if len(configs) <= 2 {
return nil, fmt.Errorf("No configs")
return nil, fmt.Errorf("Server didn't return any ODoH configurations")
}
length := binary.BigEndian.Uint16(configs)
if len(configs) != int(length)+2 {