From a90ef7ed5b85de58f81c707bbd3d75720b47e6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisend=C3=B6rfer?= Date: Sun, 8 Sep 2019 17:29:06 +0200 Subject: [PATCH] fix: AuthenticationMD5Password AuthType --- authentication_md5_password.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication_md5_password.go b/authentication_md5_password.go index 4680db5a..d505d264 100644 --- a/authentication_md5_password.go +++ b/authentication_md5_password.go @@ -37,7 +37,7 @@ func (dst *AuthenticationMD5Password) Decode(src []byte) error { func (src *AuthenticationMD5Password) Encode(dst []byte) []byte { dst = append(dst, 'R') dst = pgio.AppendInt32(dst, 12) - dst = pgio.AppendUint32(dst, AuthTypeOk) + dst = pgio.AppendUint32(dst, AuthTypeMD5Password) dst = append(dst, src.Salt[:]...) return dst }