Browse Source

add a default method incase authentcation handshake does something wrong

Chris Bannister 10 năm trước cách đây
mục cha
commit
5a47bda96f
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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)
 		}
 	}
 }