Explorar o código

add a default method incase authentcation handshake does something wrong

Chris Bannister %!s(int64=10) %!d(string=hai) anos
pai
achega
5a47bda96f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      conn.go

+ 2 - 0
conn.go

@@ -263,6 +263,8 @@ func (c *Conn) authenticateHandshake(authFrame *authenticateFrame) error {
 			req = &writeAuthResponseFrame{
 				data: resp,
 			}
+		default:
+			return fmt.Errorf("unknown frame response during authentication: %v", v)
 		}
 	}
 }