2
0

fix: AuthenticationMD5Password AuthType

This commit is contained in:
Felix Geisendörfer
2019-09-08 17:29:06 +02:00
parent eca1e51822
commit a90ef7ed5b
+1 -1
View File
@@ -37,7 +37,7 @@ func (dst *AuthenticationMD5Password) Decode(src []byte) error {
func (src *AuthenticationMD5Password) Encode(dst []byte) []byte { func (src *AuthenticationMD5Password) Encode(dst []byte) []byte {
dst = append(dst, 'R') dst = append(dst, 'R')
dst = pgio.AppendInt32(dst, 12) dst = pgio.AppendInt32(dst, 12)
dst = pgio.AppendUint32(dst, AuthTypeOk) dst = pgio.AppendUint32(dst, AuthTypeMD5Password)
dst = append(dst, src.Salt[:]...) dst = append(dst, src.Salt[:]...)
return dst return dst
} }