File tree 1 file changed +2
-18
lines changed
1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -1213,29 +1213,13 @@ func (cn *conn) auth(r *readBuf, o values) {
1213
1213
w := cn .writeBuf ('p' )
1214
1214
w .string (o ["password" ])
1215
1215
cn .send (w )
1216
-
1217
- t , r := cn .recv ()
1218
- if t != 'R' {
1219
- errorf ("unexpected password response: %q" , t )
1220
- }
1221
-
1222
- if r .int32 () != 0 {
1223
- errorf ("unexpected authentication response: %q" , t )
1224
- }
1216
+ return
1225
1217
case 5 :
1226
1218
s := string (r .next (4 ))
1227
1219
w := cn .writeBuf ('p' )
1228
1220
w .string ("md5" + md5s (md5s (o ["password" ]+ o ["user" ])+ s ))
1229
1221
cn .send (w )
1230
-
1231
- t , r := cn .recv ()
1232
- if t != 'R' {
1233
- errorf ("unexpected password response: %q" , t )
1234
- }
1235
-
1236
- if r .int32 () != 0 {
1237
- errorf ("unexpected authentication response: %q" , t )
1238
- }
1222
+ return
1239
1223
case 7 : // GSSAPI, startup
1240
1224
if newGss == nil {
1241
1225
errorf ("kerberos error: no GSSAPI provider registered (import github.com/lib/pq/auth/kerberos if you need Kerberos support)" )
You can’t perform that action at this time.
0 commit comments