We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9cecd1 commit 31f4d7aCopy full SHA for 31f4d7a
dnscrypt-proxy/odoh.go
@@ -105,6 +105,9 @@ func (t ODoHTarget) encryptQuery(query []byte) (ODoHQuery, error) {
105
106
aad := append([]byte{0x01}, t.keyID...)
107
ciphertext, err := clientCtx.EncryptToServer(odohPlaintext, aad)
108
+ if err != nil {
109
+ return ODoHQuery{}, err
110
+ }
111
112
encryptedMessage := encodeLengthValue(append(encryptedSharedSecret, ciphertext...))
113
odohMessage := append(append([]byte{0x01}, t.keyID...), encryptedMessage...)
0 commit comments