We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d32925b + b8bd3dd commit 7cd6bddCopy full SHA for 7cd6bdd
packets.go
@@ -187,10 +187,15 @@ func (mc *mysqlConn) readInitPacket() (err error) {
187
// which is not documented but seems to work.
188
mc.cipher = append(mc.cipher, data[pos:pos+12]...)
189
190
- if data[len(data)-1] == 0 {
191
- return
192
- }
193
- return errMalformPkt
+ // TODO: Verify string termination
+ // EOF if version (>= 5.5.7 and < 5.5.10) or (>= 5.6.0 and < 5.6.2)
+ // \NUL otherwise
+ // http://dev.mysql.com/doc/internals/en/connection-phase.html#packet-Protocol::Handshake
194
+ //
195
+ //if data[len(data)-1] == 0 {
196
+ // return
197
+ //}
198
+ //return errMalformPkt
199
}
200
201
return
0 commit comments