소스 검색

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)
 		}
 	}
 }