瀏覽代碼

add a default method incase authentcation handshake does something wrong

Chris Bannister 10 年之前
父節點
當前提交
5a47bda96f
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)
 		}
 	}
 }